Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
FlatButton(
onPressed: () {
DatePicker.showDatePicker(context,
showTitleActions: true,
minTime: DateTime(2000, 1, 1),
maxTime: DateTime(2022, 12, 31),
onChanged: (date) {print('change $date');},
onConfirm: (date) {print('confirm $date');},
currentTime: DateTime.now(), locale: LocaleType.en);},
child: Text('Show DateTime Picker',)
);
@zielu92

This comment has been minimized.

Copy link

@zielu92 zielu92 commented Jun 5, 2020

missing "," on 5th line

@ShivamGoyal1899

This comment has been minimized.

Copy link
Owner Author

@ShivamGoyal1899 ShivamGoyal1899 commented Jun 5, 2020

Thanks @zielu92 for pointing out. It's fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.