Browse Source

edit-time: update min & max time

Neeraj Gupta 3 years ago
parent
commit
9949ff69c9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/ui/fading_app_bar.dart

+ 2 - 2
lib/ui/fading_app_bar.dart

@@ -244,8 +244,8 @@ class FadingAppBarState extends State<FadingAppBar> {
 
   void _showDateTimePicker(File file) async {
     final dateResult = await DatePicker.showDatePicker(context,
-        minTime: DateTime(1800, 1, 1),
-        maxTime: DateTime.now().add(Duration(days: 1)),
+        minTime: DateTime(1, 1, 1),
+        maxTime: DateTime.now(),
         currentTime: DateTime.fromMicrosecondsSinceEpoch(file.creationTime),
         locale: LocaleType.en);
     if (dateResult == null) {