From 7b8f2c7b244402a11af136f8492c146671b9b6a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?l=C3=A9o?= Date: Mon, 18 Jul 2022 16:22:33 +0200 Subject: [PATCH 1/2] fix(dialog): fit months in view --- lib/src/dialogs.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/dialogs.dart b/lib/src/dialogs.dart index b4fb71c..9dd5876 100644 --- a/lib/src/dialogs.dart +++ b/lib/src/dialogs.dart @@ -288,7 +288,7 @@ class _MonthYearPickerDialogState extends State { duration: _dialogSizeAnimationDuration, curve: Curves.easeOut, left: 0.0, - right: (pickerMaxWidth - (width ?? pickerMaxWidth)), + right: 0.0, top: _isShowingYear ? constraints.maxHeight : 0.0, bottom: _isShowingYear ? -constraints.maxHeight : 0.0, child: SizedBox( From 4c70b0a36ee1b40639b953cd59d0ddb24513dc82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?l=C3=A9o?= Date: Mon, 18 Jul 2022 16:45:42 +0200 Subject: [PATCH 2/2] fix(dialog): fit year in view --- lib/src/dialogs.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/dialogs.dart b/lib/src/dialogs.dart index 9dd5876..88288ac 100644 --- a/lib/src/dialogs.dart +++ b/lib/src/dialogs.dart @@ -268,7 +268,7 @@ class _MonthYearPickerDialogState extends State { duration: _dialogSizeAnimationDuration, curve: Curves.easeOut, left: 0.0, - right: (pickerMaxWidth - (width ?? pickerMaxWidth)), + right: 0.0, top: _isShowingYear ? 0.0 : -constraints.maxHeight, bottom: _isShowingYear ? 0.0 : constraints.maxHeight, child: SizedBox(