- Fixed #106.
- Updated android sample.
- Fixed #104.
- Fixed #105.
- removed
initialDate
parameter fromshowMonthRangePicker
. - added
initialRangeDate
parameter toshowMonthRangePicker
. Fixes #103 - added
endRangeDate
parameter toshowMonthRangePicker
. Fixes #103 - made
firstDayOfMonth
andlastDayOfMonth
extensions nullable.
- [Breaking] Reworked dialog configuration to use the new class
MonthPickerDialogSettings
. Please follow the sample app to learn how to configure your widget using the new way (or feel free to open an issue on github). - Added new ways to customize the header, months/years pages and the dialog behavior with different parameters for the year and month selectors.
- Added
showYearPicker
function to the package. Now its possible to return only a year. - Added
selectableYearPredicate
to range and single month pickers. It lets you control enabled years likeselectableMonthPredicate
. - Updated sample and readme.
- Improved locale selection. #98
- Added
showMonthRangePicker
function to the package. Now its possible to return a range of months too. Tks Lautaro Zanuttini - Updated web sample.
- Added
lastDayOfMonth
DateTime extension. if you want to get the last day of the month from one of your selected dates. - Updated sample and readme.
- Bumped intl to
0.19.0
. - Bumped flutter_lints to
4.0.0
.
- Added
buttonBorder:
property to allow you define the border of the month/year buttons (default isconst CircleBorder()
) #92. - Added
headerTitle:
property to allow you add a custom title to the header of the dialog (default isnull
) #92.
- Removed unnecessary dependencies.
- Bumped provider to
6.1.2
. - Improved some docs.
- Fixed #87.
- Added
dialogBorderSide:
property to allow you define the border side of the dialog (default isBorderSide.none
). - Added
blockScrolling:
property to allow you block the user from scrolling the months/years (default istrue
). - Wraped portrait dialog in a SingleChildScrollView to avoid overflow #85.
- Added
currentMonthTextColor
property to allow you control the text color of the current month/year.
- Exposed
MonthPickerDialog
widget. - Improved files organization.
- Added
customDivider
property to allow you add a custom divider between the months/years and the confirm/cancel buttons.
- Mini fix in
customWidth
.
- Added
forcePortrait
property to allow you block the widget from entering in landscape mode.
- Added
arrowSize
property to allow you control the size of the header arrows.
- Removed deprecated
textScaleFactor
inside the package (the name of the parameter stays the same) - Bumped dart to
3.0.0
,provider to6.1.1
, intl to0.18.1
and flutter_lints to3.0.1
- Added
textScaleFactor
property to allow controlling the scale of the texts in the widget 77. - Wrap portrait mode dialog in IntrinsicWidth to prevent oversized content 76.
- Added
selectedMonthPadding
property to allow you control the size of the current selected month/year circle by increasing the padding of it (default is 0) 74. - Added web to sample.
- Moved theme to the controller
- Added default locale strings to the action buttons 73.
- Breaking: bumped to dart 3 + intl 0.18.0 (latest one on flutter_localizations)
- Added
hideHeaderRow
property to allow you hide the row with the arrows + years/months page range from the header, forcing the user to scroll to change the page (default is false).
- Added
animationMilliseconds
property to allow you define the speed of the page transition animation (default is 450). - Removed unnecessary column.
- Changed default
customHeight
to 240.
- Added
monthStylePredicate
andyearStylePredicate
properties to allow passing a different style for each month or year 67. - Added documentation on some of the code
- Fixed provider names to pass static analysis
- Added
backgroundColor
property to allow the dialog to have a different background of the default from the theme.
- Removed
RxDart
from the code in favor of Provider. - Fixed an old error where the year/month becomes zero when changing the orientation 30.
- Another fix on header arrow 61.
- Mini fix on header arrow. Bumped to 0.8 because of the braking change on
0.7.1
- Breaking:
confirmText
andcancelText
were replaced byconfirmWidget
andcancelWidget
. Now it's possible to use any widget instead of onlyText()
in the buttons
- Added
forceSelectedDate
to fix 41.The parameter lets you define that the current selected date will be returned if the user clicks outside of the dialog. Needsdismissible = true
- updated to flutter 2.19.2 and fixed deprecations
- readme fix
- border now changes with orientation
initialDate
isn't required anymore!
-
added
roundedCornersRadius
-> lets you define the Radius of the rounded dialog (tks Fabio Henrique). -
bump rxdart to 0.27.7
-
removed deprecated parameter from TextButton.styleFrom
-
improved readme
-
added
dismissible
parameter -> lets you define if the dialog will be dismissible by clicking outside it (false as default).
- bump rxdart to ^0.27.5
- removed MaterialLocalizations from code. First part of the changes to let people use designs different than Material
- month selector cleanup/organization + more small fixes
- code cleanup/organization (with some possible small performance improvement)
-
added
customHeight
-> lets you set a custom height for the calendar widget. -
added
customWidth
-> lets you set a custom width for the calendar widget. -
added
yearFirst
-> lets you define that the user must select first the year, then the month (false as default).
-
added
headerColor
-> lets you control the calendar header color. -
added
headerTextColor
-> lets you control the calendar header text and arrows color. -
added
selectedMonthBackgroundColor
-> lets you control the current selected month/year background color. -
added
selectedMonthTextColor
-> lets you control the text color of the current selected month/year. -
added
unselectedMonthTextColor
-> lets you control the text color of the current unselected months/years. -
added
confirmText
-> lets you set a custom confirm text widget. -
added
cancelText
-> lets you set a custom cancel text widget. -
updated sample with the new parameters
- fixes on
selectableMonthPredicate
parameter + sample
- size fixes
- made the month selector barrier dismissible parameter = false
- added
capitalizeFirstLetter
-> Enable you to choose if the first letter of the month will be capitalized thks https://github.com/0wzZZzz6
- added
selectableMonthPredicate
-> Enable selective months disabling thks https://github.com/ahmdaeyz
- package rename
- partial update to flutter 3
- support for flutter 2 null safety (thanks @quantosapplications)
- pagebounds bug with
firstDate == null
fixed (thanks @mono0926) - deprecation warnings for text themes fixed
- you can now provide custom localizations
- bump up rxdart dependency
- migrated example app to androidx
- fixed deprecation warning for buttonthemebar
- fixed dependency issue
- architectural changes (using
rxdart
now) - fixed bug where header and pageview could scroll to 0 and infinity despite
firstDate
andlastDate
being set - added animation for transition between year selection mode and month selection mode
- intl dependency is now
>=0.1.0<2.0.0
to appease the maintenance analysis on pub.dev
- Reverting to 0.2.0 because of dependency issues
- Upgraded dependency:
intl: ^0.16.0
- Show list of years by tapping year label
- Dart 2.2.2 is now required
- Bound month selection
- Refactoring and removal of white border
- Renamed docs to screenshots to appease to pub
- Provided screenshots to README