Commit 05e200f1 authored by Hans Muller's avatar Hans Muller Committed by GitHub

Fixed some typos (#4929)

parent 5f7b8999
...@@ -31,18 +31,15 @@ class OverscrollDemoState extends State<OverscrollDemo> { ...@@ -31,18 +31,15 @@ class OverscrollDemoState extends State<OverscrollDemo> {
Completer<Null> completer = new Completer<Null>(); Completer<Null> completer = new Completer<Null>();
new Timer(new Duration(seconds: 3), () { completer.complete(null); }); new Timer(new Duration(seconds: 3), () { completer.complete(null); });
return completer.future.then((_) { return completer.future.then((_) {
final ScaffoldState scaffoldState = _scaffoldKey.currentState; _scaffoldKey.currentState?.showSnackBar(new SnackBar(
if (scaffoldState != null) { content: new Text("Refresh complete"),
scaffoldState.showSnackBar(new SnackBar( action: new SnackBarAction(
content: new Text("Refresh complete"), label: 'RETRY',
action: new SnackBarAction( onPressed: () {
label: 'RETRY', _refreshIndicatorKey.currentState.show();
onPressed: () { }
_refreshIndicatorKey.currentState.show(); )
} ));
)
));
}
}); });
} }
......
...@@ -344,7 +344,7 @@ abstract class SchedulerBinding extends BindingBase { ...@@ -344,7 +344,7 @@ abstract class SchedulerBinding extends BindingBase {
_postFrameCallbacks.add(callback); _postFrameCallbacks.add(callback);
} }
/// Whether this scheduler as requested that handleBeginFrame be called soon. /// Whether this scheduler has requested that handleBeginFrame be called soon.
bool get hasScheduledFrame => _hasScheduledFrame; bool get hasScheduledFrame => _hasScheduledFrame;
bool _hasScheduledFrame = false; bool _hasScheduledFrame = false;
......
...@@ -157,7 +157,7 @@ class NavigatorObserver { ...@@ -157,7 +157,7 @@ class NavigatorObserver {
/// The [Navigator] pushed the given route. /// The [Navigator] pushed the given route.
void didPush(Route<dynamic> route, Route<dynamic> previousRoute) { } void didPush(Route<dynamic> route, Route<dynamic> previousRoute) { }
/// THe [Navigator] popped the given route. /// The [Navigator] popped the given route.
void didPop(Route<dynamic> route, Route<dynamic> previousRoute) { } void didPop(Route<dynamic> route, Route<dynamic> previousRoute) { }
} }
......
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