fix typo in member name (#12161)

This commit is contained in:
Collin Jackson 2017-09-19 19:55:31 -07:00 committed by GitHub
parent 59b9418540
commit 8e5ec0b153

View file

@ -13,7 +13,7 @@ class LifecycleWatcher extends StatefulWidget {
class _LifecycleWatcherState extends State<LifecycleWatcher>
with WidgetsBindingObserver {
AppLifecycleState _lastLifecyleState;
AppLifecycleState _lastLifecycleState;
@override
void initState() {
@ -30,15 +30,15 @@ class _LifecycleWatcherState extends State<LifecycleWatcher>
@override
void didChangeAppLifecycleState(AppLifecycleState state) {
setState(() {
_lastLifecyleState = state;
_lastLifecycleState = state;
});
}
@override
Widget build(BuildContext context) {
if (_lastLifecyleState == null)
if (_lastLifecycleState == null)
return const Text('This widget has not observed any lifecycle changes.');
return new Text('The most recent lifecycle state this widget observed was: $_lastLifecyleState.');
return new Text('The most recent lifecycle state this widget observed was: $_lastLifecycleState.');
}
}