bottomSheetTheme property
BottomSheetThemeData
get
bottomSheetTheme
Implementation
BottomSheetThemeData get bottomSheetTheme {
final isDark = Theme.of(this).brightness == Brightness.dark;
final scheme = isDark ? darkColorScheme : lightColorScheme;
return BottomSheetThemeData(
elevation: 0,
backgroundColor: Color.alphaBlend(
scheme.secondaryContainer.withValues(alpha: 0.3),
scheme.surface,
),
constraints: const BoxConstraints(maxWidth: 500),
);
}