mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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:
parent
8f0d16a397
commit
8de49db608
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user