This commit is contained in:
Chandra Abdul Fattah
2025-01-31 23:26:32 +07:00
parent 24580fa79f
commit 7f36d14ba6
5 changed files with 60 additions and 25 deletions

View File

@@ -73,7 +73,8 @@ class _SelectionBottomSheetState extends State<SelectionBottomSheet> {
borderRadius: const BorderRadius.all(Radius.circular(8.0)),
boxShadow: [
BoxShadow(
color: widget.barrierColor ?? Colors.grey.withOpacity(1),
color: widget.barrierColor ?? Colors.grey
..withAlpha(255),
spreadRadius: 5,
blurRadius: 7,
offset: const Offset(0, 3), // changes position of shadow

View File

@@ -88,7 +88,7 @@ class _SelectionDialogState extends State<SelectionDialog> {
borderRadius: const BorderRadius.all(Radius.circular(8.0)),
boxShadow: [
BoxShadow(
color: widget.barrierColor ?? Colors.grey.withOpacity(1),
color: widget.barrierColor ?? Colors.grey.withAlpha(255),
spreadRadius: 5,
blurRadius: 7,
offset: const Offset(0, 3), // changes position of shadow