Make 'save failed' snackbar show up

SnackBar's crash if you fail to provide a showing bool.

I tried to edit it in the framework, but this seemed easier for now.

The snackbar still shows behind the keyboard unfortunately.
https://github.com/domokit/sky_engine/issues/810

@collinjackson
This commit is contained in:
Eric Seidel 2015-08-25 13:37:08 -07:00
parent 8f0d16a397
commit 8de49db608

View File

@ -132,7 +132,7 @@ class MeasurementFragment extends StatefulComponent {
if (_errorMessage == null)
return null;
// TODO(jackson): This doesn't show up, unclear why.
return new SnackBar(content: new Text(_errorMessage));
return new SnackBar(content: new Text(_errorMessage), showing: true);
}
Widget build() {