Liu Yanbo hace 6 años
padre
commit
034ac40bcc
Se han modificado 1 ficheros con 1 adiciones y 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);
               },
             ),
           ),