setting to control modal barrier

This commit is contained in:
Fabian Freund
2026-03-11 15:54:18 +01:00
parent cdd7a3ffd5
commit c751c6fe15
9 changed files with 76 additions and 3 deletions
@@ -54,6 +54,8 @@ class BottomSheetPage<T> extends Page<T> {
shape: Theme.of(context).bottomSheetTheme.shape,
clipBehavior: Clip.antiAlias,
constraints: Theme.of(context).bottomSheetTheme.constraints,
modalBarrierColor:
barrierColor ?? Theme.of(context).bottomSheetTheme.modalBarrierColor,
isScrollControlled: isScrollControlled,
isDismissible: barrierDismissible,
useSafeArea: useSafeArea,
@@ -33,7 +33,7 @@ class DialogPage<T> extends Page<T> {
const DialogPage({
required this.builder,
this.anchorPoint,
this.barrierColor = Colors.black54,
this.barrierColor,
this.barrierDismissible = true,
this.barrierLabel,
this.useSafeArea = true,