better dialogColor selection
This commit is contained in:
1 parent
a4cb08a12f
commit
e4f5a62d9a
1 file changed
+5
-1
@@ -50,7 +50,11 @@ class DialogPage<T> extends Page<T> {
|
|||||||
settings: this,
|
settings: this,
|
||||||
builder: builder,
|
builder: builder,
|
||||||
anchorPoint: anchorPoint,
|
anchorPoint: anchorPoint,
|
||||||
barrierColor: barrierColor,
|
barrierColor:
|
||||||
|
barrierColor ??
|
||||||
|
DialogTheme.of(context).barrierColor ??
|
||||||
|
Theme.of(context).dialogTheme.barrierColor ??
|
||||||
|
Colors.black54,
|
||||||
barrierDismissible: barrierDismissible,
|
barrierDismissible: barrierDismissible,
|
||||||
barrierLabel: barrierLabel,
|
barrierLabel: barrierLabel,
|
||||||
useSafeArea: useSafeArea,
|
useSafeArea: useSafeArea,
|
||||||
|
|||||||
Reference in new issue
Block a user