Liu Yanbo 6 gadi atpakaļ
vecāks
revīzija
034ac40bcc
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      lib/flutter_datetime_picker.dart

+ 1 - 1
lib/flutter_datetime_picker.dart

@@ -397,10 +397,10 @@ class _DatePickerState extends State<_DatePickerComponent> {
                 style: theme.doneStyle,
               ),
               onPressed: () {
+                Navigator.pop(context);
                 if (widget.route.onConfirm != null) {
                   widget.route.onConfirm(widget.pickerModel.finalTime());
                 }
-                Navigator.pop(context);
               },
             ),
           ),