Commit 3f8c37cf authored by Raju Bitter's avatar Raju Bitter Committed by Adam Barth

Fix for issue https://github.com/flutter/flutter/issues/6826 (#6833)

Exception in Flutter Gallery / Dialogs Demo #6826
parent 66154322
......@@ -183,7 +183,7 @@ class DialogDemoState extends State<DialogDemo> {
initialTime: _selectedTime
)
.then((TimeOfDay value) {
if (value != _selectedTime) {
if (value != null && value != _selectedTime) {
_selectedTime = value;
_scaffoldKey.currentState.showSnackBar(new SnackBar(
content: new Text('You selected: $value')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment