better dialogColor selection
This commit is contained in:
@@ -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