Commit 1c983763 authored by Eric Seidel's avatar Eric Seidel

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
parent 19f62a35
...@@ -132,7 +132,7 @@ class MeasurementFragment extends StatefulComponent { ...@@ -132,7 +132,7 @@ class MeasurementFragment extends StatefulComponent {
if (_errorMessage == null) if (_errorMessage == null)
return null; return null;
// TODO(jackson): This doesn't show up, unclear why. // 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() { Widget build() {
......
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