better dialogColor selection

This commit is contained in:
Fabian Freund
2026-03-12 11:10:12 +01:00
parent a4cb08a12f
commit e4f5a62d9a
@@ -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,