Skip to content

Commit

Permalink
fix initialDateTime can be greater then maximumDate
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonIT committed Dec 19, 2019
1 parent 3866f64 commit fd255ea
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ android {
applicationId "com.papierkram.timetracker"
minSdkVersion 18
targetSdkVersion 29
versionCode 10
versionCode 11
versionName flutterVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -484,8 +484,8 @@ class _TimeTrackerState extends State<TimeTracker> {
return _buildBottomPicker(
CupertinoDatePicker(
mode: CupertinoDatePickerMode.date,
maximumDate: state.getEndedAt(),
initialDateTime: state.getStartedAt(),
maximumDate: state.getEndedAt(),
use24hFormat: true,
onDateTimeChanged: (DateTime newDateTime) {
setState(() {
Expand Down
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ packages:
name: file_picker
url: "https://pub.dartlang.org"
source: hosted
version: "1.4.3+1"
version: "1.4.3+2"
fixnum:
dependency: transitive
description:
Expand Down Expand Up @@ -652,7 +652,7 @@ packages:
name: url_launcher_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.4"
version: "1.0.5"
url_launcher_web:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: timetracker
description: Papierkram.de - TimeTracker as flutter app

version: 1.5.0
version: 1.5.1

environment:
sdk: ">=2.2.2 <3.0.0"
Expand Down

0 comments on commit fd255ea

Please sign in to comment.