From 07ccd56ea8ec58362f2c3bdbb828d502e3f776f3 Mon Sep 17 00:00:00 2001 From: Pong Loong Yeat Date: Thu, 2 Nov 2023 12:12:58 +0800 Subject: [PATCH] Wrap portrait mode dialog in IntrinsicWidth --- lib/month_picker_dialog.dart | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/month_picker_dialog.dart b/lib/month_picker_dialog.dart index 47050eb..63bdc28 100644 --- a/lib/month_picker_dialog.dart +++ b/lib/month_picker_dialog.dart @@ -227,9 +227,11 @@ class _MonthPickerDialogState extends State<_MonthPickerDialog> { child: Builder( builder: (BuildContext context) { if (portrait) { - return Column( - mainAxisSize: MainAxisSize.min, - children: [header, content], + return IntrinsicWidth( + child: Column( + mainAxisSize: MainAxisSize.min, + children: [header, content], + ), ); } return IntrinsicHeight(