Skip to content

Commit c8190fb

Browse files
authored
Merge pull request #42 from obrunsmann/main
fix: missing return result from date picker
2 parents 8ce788e + 453b095 commit c8190fb

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)