chore: styling for asset_viewer bottom sheet (#20006)

bottom sheet styling
This commit is contained in:
Alex 2025-07-18 08:36:29 -05:00 committed by GitHub
parent 53acf08263
commit 137f0d48c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 43 additions and 42 deletions

View file

@ -14,6 +14,7 @@ class BaseBottomSheet extends ConsumerStatefulWidget {
final bool expand;
final bool shouldCloseOnMinExtent;
final bool resizeOnScroll;
final Color? backgroundColor;
const BaseBottomSheet({
super.key,
@ -26,6 +27,7 @@ class BaseBottomSheet extends ConsumerStatefulWidget {
this.expand = true,
this.shouldCloseOnMinExtent = true,
this.resizeOnScroll = true,
this.backgroundColor,
});
@override
@ -69,8 +71,8 @@ class _BaseDraggableScrollableSheetState
shouldCloseOnMinExtent: widget.shouldCloseOnMinExtent,
builder: (BuildContext context, ScrollController scrollController) {
return Card(
color: context.colorScheme.surfaceContainerHigh,
surfaceTintColor: context.colorScheme.surfaceContainerHigh,
color: widget.backgroundColor ??
context.colorScheme.surfaceContainerHigh,
borderOnForeground: false,
clipBehavior: Clip.antiAlias,
elevation: 6.0,