From 9d6961e7904468fb570493a65cdfaceac3252745 Mon Sep 17 00:00:00 2001 From: MohammadTaha Basiri Date: Sun, 24 Apr 2022 17:30:48 +0430 Subject: [PATCH] callout dialog size fixed --- lib/views/widgets/didvan/page_view.dart | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/lib/views/widgets/didvan/page_view.dart b/lib/views/widgets/didvan/page_view.dart index 54384af..b3c0eb2 100644 --- a/lib/views/widgets/didvan/page_view.dart +++ b/lib/views/widgets/didvan/page_view.dart @@ -205,16 +205,20 @@ class _DidvanPageViewState extends State { } else if (href.contains('popup-')) { showDialog( context: ActionSheetUtils.context, - builder: (context) => DidvanCard( - child: Column( - children: [ - DidvanText(href.split('-').last), - const DidvanDivider(), - const DidvanButton( - title: 'بستن', - onPressed: ActionSheetUtils.pop, - ), - ], + builder: (context) => Dialog( + alignment: Alignment.center, + child: DidvanCard( + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + DidvanText(href.split('-').last), + const DidvanDivider(), + const DidvanButton( + title: 'بستن', + onPressed: ActionSheetUtils.pop, + ), + ], + ), ), ), );