mirror of
https://github.com/flutter/flutter
synced 2024-10-13 19:52:53 +00:00
fix typo in member name (#12161)
This commit is contained in:
parent
59b9418540
commit
8e5ec0b153
|
@ -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.');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue