mirror of
https://github.com/Iconica-Development/flutter_date_time_picker.git
synced 2025-05-18 10:23:50 +02:00
Merge pull request #28 from Iconica-Development/hotfix/calender-year-transition
fix: changed move page direction on a 11 month difference
This commit is contained in:
commit
fa171e956c
3 changed files with 12 additions and 4 deletions
|
@ -68,7 +68,7 @@ packages:
|
|||
path: ".."
|
||||
relative: true
|
||||
source: path
|
||||
version: "3.1.0"
|
||||
version: "3.1.1"
|
||||
flutter_lints:
|
||||
dependency: "direct dev"
|
||||
description:
|
||||
|
|
|
@ -227,9 +227,17 @@ class _OverlayDateTimeContentState extends State<OverlayDateTimeContent> {
|
|||
|
||||
void _movePage(int direction) {
|
||||
if (direction < 0) {
|
||||
_nextPage();
|
||||
if (direction == -11) {
|
||||
_previousPage();
|
||||
} else {
|
||||
_nextPage();
|
||||
}
|
||||
} else if (direction > 0) {
|
||||
_previousPage();
|
||||
if (direction == 11) {
|
||||
_nextPage();
|
||||
} else {
|
||||
_previousPage();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
name: flutter_date_time_picker
|
||||
description: A Flutter package for date and time picker.
|
||||
version: 3.1.0
|
||||
version: 3.1.1
|
||||
homepage: https://iconica.nl/
|
||||
|
||||
environment:
|
||||
|
|
Loading…
Reference in a new issue