Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
8e5ec0b1
Commit
8e5ec0b1
authored
Sep 20, 2017
by
Collin Jackson
Committed by
GitHub
Sep 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix typo in member name (#12161)
parent
59b94185
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lifecycle.dart
examples/layers/services/lifecycle.dart
+4
-4
No files found.
examples/layers/services/lifecycle.dart
View file @
8e5ec0b1
...
...
@@ -13,7 +13,7 @@ class LifecycleWatcher extends StatefulWidget {
class
_LifecycleWatcherState
extends
State
<
LifecycleWatcher
>
with
WidgetsBindingObserver
{
AppLifecycleState
_lastLifecyleState
;
AppLifecycleState
_lastLifecy
c
leState
;
@override
void
initState
()
{
...
...
@@ -30,15 +30,15 @@ class _LifecycleWatcherState extends State<LifecycleWatcher>
@override
void
didChangeAppLifecycleState
(
AppLifecycleState
state
)
{
setState
(()
{
_lastLifecyleState
=
state
;
_lastLifecy
c
leState
=
state
;
});
}
@override
Widget
build
(
BuildContext
context
)
{
if
(
_lastLifecyleState
==
null
)
if
(
_lastLifecy
c
leState
==
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:
$_lastLifecy
c
leState
.'
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment