From e4f5a62d9af763439c635b67bbaaae52f43d6b29 Mon Sep 17 00:00:00 2001 From: Fabian Freund Date: Thu, 12 Mar 2026 11:10:12 +0100 Subject: [PATCH] better dialogColor selection --- app/lib/core/routing/widgets/dialog_page.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/lib/core/routing/widgets/dialog_page.dart b/app/lib/core/routing/widgets/dialog_page.dart index 5faef544..7ea5ccd8 100644 --- a/app/lib/core/routing/widgets/dialog_page.dart +++ b/app/lib/core/routing/widgets/dialog_page.dart @@ -50,7 +50,11 @@ class DialogPage extends Page { settings: this, builder: builder, anchorPoint: anchorPoint, - barrierColor: barrierColor, + barrierColor: + barrierColor ?? + DialogTheme.of(context).barrierColor ?? + Theme.of(context).dialogTheme.barrierColor ?? + Colors.black54, barrierDismissible: barrierDismissible, barrierLabel: barrierLabel, useSafeArea: useSafeArea,