From 8c629861c69d93d62b62952b32043e2d0e285be2 Mon Sep 17 00:00:00 2001 From: Vitalij Vascenko Date: Mon, 16 Sep 2024 00:26:15 +0200 Subject: [PATCH] fix: Fix dialog border --- optimus/lib/src/dialogs/dialog.dart | 4 +--- optimus/lib/src/dialogs/dialog_content.dart | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/optimus/lib/src/dialogs/dialog.dart b/optimus/lib/src/dialogs/dialog.dart index 3cf3f286..1dec23c3 100644 --- a/optimus/lib/src/dialogs/dialog.dart +++ b/optimus/lib/src/dialogs/dialog.dart @@ -52,9 +52,7 @@ Future showOptimusDialog({ ), barrierDismissible: isDismissible, barrierLabel: MaterialLocalizations.of(context).modalBarrierDismissLabel, - barrierColor: OptimusTheme.of(context) - .colors - .neutral1000t64, // TODO(witwash): migrate to tokens + barrierColor: context.tokens.borderStaticPrimary, transitionDuration: const Duration(milliseconds: 150), transitionBuilder: (_, animation, __, child) => FadeTransition( opacity: CurvedAnimation(parent: animation, curve: Curves.easeOut), diff --git a/optimus/lib/src/dialogs/dialog_content.dart b/optimus/lib/src/dialogs/dialog_content.dart index 7588a9f1..7d8be366 100644 --- a/optimus/lib/src/dialogs/dialog_content.dart +++ b/optimus/lib/src/dialogs/dialog_content.dart @@ -50,6 +50,7 @@ class DialogContent extends StatelessWidget { child: OptimusCard( variant: OptimusBasicCardVariant.overlay, padding: OptimusCardSpacing.spacing0, + isOutlined: false, child: Material( color: tokens.backgroundStaticFloating, child: Column(