Last active
June 5, 2020 16:44
-
-
Save shyvum/a9c940d27e1f7e9f3ab00d11a4694576 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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',) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
missing "," on 5th line