Fixed some typos (#4929)
This commit is contained in:
@@ -31,18 +31,15 @@ class OverscrollDemoState extends State<OverscrollDemo> {
|
||||
Completer<Null> completer = new Completer<Null>();
|
||||
new Timer(new Duration(seconds: 3), () { completer.complete(null); });
|
||||
return completer.future.then((_) {
|
||||
final ScaffoldState scaffoldState = _scaffoldKey.currentState;
|
||||
if (scaffoldState != null) {
|
||||
scaffoldState.showSnackBar(new SnackBar(
|
||||
content: new Text("Refresh complete"),
|
||||
action: new SnackBarAction(
|
||||
label: 'RETRY',
|
||||
onPressed: () {
|
||||
_refreshIndicatorKey.currentState.show();
|
||||
}
|
||||
)
|
||||
));
|
||||
}
|
||||
_scaffoldKey.currentState?.showSnackBar(new SnackBar(
|
||||
content: new Text("Refresh complete"),
|
||||
action: new SnackBarAction(
|
||||
label: 'RETRY',
|
||||
onPressed: () {
|
||||
_refreshIndicatorKey.currentState.show();
|
||||
}
|
||||
)
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user