diff --git a/lib/src/dialogs.dart b/lib/src/dialogs.dart index b4fb71c..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( @@ -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(