Skip to content

Commit

Permalink
Merge pull request #76 from pongloongyeat/fix-dialog-stretch-on-large…
Browse files Browse the repository at this point in the history
…-devices

Wrap portrait mode dialog in IntrinsicWidth to prevent oversized content
  • Loading branch information
Macacoazul01 authored Nov 3, 2023
2 parents 9bf0d0c + 07ccd56 commit 037eca1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/month_picker_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,11 @@ class _MonthPickerDialogState extends State<_MonthPickerDialog> {
child: Builder(
builder: (BuildContext context) {
if (portrait) {
return Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[header, content],
return IntrinsicWidth(
child: Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[header, content],
),
);
}
return IntrinsicHeight(
Expand Down

0 comments on commit 037eca1

Please sign in to comment.