1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use crate::{
foundation::colorspace::Color,
painting::{NoneShapeBorder, ShapeBorder},
rendering::BoxConstraints,
ui::Clip,
};
pub struct BottomSheetThemeData {
pub background_color: Color,
pub elevation: f32,
pub modal_background_color: Color,
pub modal_elevation: f32,
pub shape: Box<dyn ShapeBorder>,
pub clip_behavior: Clip,
pub constraints: BoxConstraints,
}
impl Default for BottomSheetThemeData {
fn default() -> Self {
Self {
background_color: Default::default(),
elevation: Default::default(),
modal_background_color: Default::default(),
modal_elevation: Default::default(),
shape: box NoneShapeBorder,
clip_behavior: Default::default(),
constraints: Default::default(),
}
}
}