Commit 8e5ec0b1 authored by Collin Jackson's avatar Collin Jackson Committed by GitHub

fix typo in member name (#12161)

parent 59b94185
......@@ -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.');
}
}
......
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