Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions lib/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ class Loadpoint {
Loadpoint(this.message, this.step);
}

// Standard shadow behind a sheet
const SheetBoxShadow = BoxShadow(
color: Color.fromRGBO(0, 0, 0, 0.2),
offset: const Offset(
Expand All @@ -431,3 +432,19 @@ const SheetBoxShadow = BoxShadow(
blurRadius: 100.0,
spreadRadius: 40.0,
);

// Modified shadow that only appears behind the left side of a sheet
// This is used for sheets inside a SheetNavigator so the foreground
// sheet stands out from the background sheet.
// The SheetBoxShadow is applied behind everything, but the only shadow
// applied to the sheets inside the navigator is SheetBoxLeftShadow
const SheetBoxLeftShadow = BoxShadow(
color: Color.fromRGBO(0, 0, 0, 0.2),
offset: const Offset(
0.0,
30.0,
),
blurRadius: 40.0,
spreadRadius: 0.0,
);

Loading