mirror of
https://github.com/Iconica-Development/flutter_date_time_picker.git
synced 2025-05-18 18:33:49 +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: ".."
|
path: ".."
|
||||||
relative: true
|
relative: true
|
||||||
source: path
|
source: path
|
||||||
version: "3.1.0"
|
version: "3.1.1"
|
||||||
flutter_lints:
|
flutter_lints:
|
||||||
dependency: "direct dev"
|
dependency: "direct dev"
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -227,9 +227,17 @@ class _OverlayDateTimeContentState extends State<OverlayDateTimeContent> {
|
||||||
|
|
||||||
void _movePage(int direction) {
|
void _movePage(int direction) {
|
||||||
if (direction < 0) {
|
if (direction < 0) {
|
||||||
_nextPage();
|
if (direction == -11) {
|
||||||
} else if (direction > 0) {
|
|
||||||
_previousPage();
|
_previousPage();
|
||||||
|
} else {
|
||||||
|
_nextPage();
|
||||||
|
}
|
||||||
|
} else if (direction > 0) {
|
||||||
|
if (direction == 11) {
|
||||||
|
_nextPage();
|
||||||
|
} else {
|
||||||
|
_previousPage();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: flutter_date_time_picker
|
name: flutter_date_time_picker
|
||||||
description: A Flutter package for date and time picker.
|
description: A Flutter package for date and time picker.
|
||||||
version: 3.1.0
|
version: 3.1.1
|
||||||
homepage: https://iconica.nl/
|
homepage: https://iconica.nl/
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Reference in a new issue