Liu Yanbo %!s(int64=6) %!d(string=hai) anos
pai
achega
034ac40bcc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
               },
             ),
           ),