mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
chore: styling for asset_viewer bottom sheet (#20006)
bottom sheet styling
This commit is contained in:
parent
53acf08263
commit
137f0d48c0
6 changed files with 43 additions and 42 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue