Skip to content

Commit 453b095

Browse files
committed
fix: missing return result from date picker
1 parent 69a4047 commit 453b095

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/widgets/adaptive_date_picker.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ class _CupertinoDatePickerContentState
150150
),
151151
CupertinoButton(
152152
padding: EdgeInsets.zero,
153-
onPressed: () => Navigator.of(context).pop(true),
153+
onPressed: () => Navigator.of(context).pop(selectedDate),
154154
child: Text(
155155
MaterialLocalizations.of(context).okButtonLabel,
156156
style: const TextStyle(fontWeight: FontWeight.w600),

0 commit comments

Comments
 (0)