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
d75fb405
Commit
d75fb405
authored
Aug 21, 2015
by
Collin Jackson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don’t flash a message while fitness data is loading
parent
ac7c3a00
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
feed.dart
examples/fitness/lib/feed.dart
+2
-0
main.dart
examples/fitness/lib/main.dart
+1
-1
framework.dart
packages/flutter/lib/widgets/framework.dart
+9
-5
No files found.
examples/fitness/lib/feed.dart
View file @
d75fb405
...
...
@@ -214,6 +214,8 @@ class FeedFragment extends StatefulComponent {
Widget
buildBody
()
{
TextStyle
style
=
Theme
.
of
(
this
).
text
.
title
;
if
(
userData
==
null
)
return
new
Material
(
type:
MaterialType
.
canvas
);
if
(
userData
.
items
.
length
==
0
)
return
new
Material
(
type:
MaterialType
.
canvas
,
...
...
examples/fitness/lib/main.dart
View file @
d75fb405
...
...
@@ -86,7 +86,7 @@ class UserDataImpl extends UserData {
class
FitnessApp
extends
App
{
NavigationState
_navigationState
;
UserDataImpl
_userData
=
new
UserDataImpl
()
;
UserDataImpl
_userData
;
void
didMount
()
{
super
.
didMount
();
...
...
packages/flutter/lib/widgets/framework.dart
View file @
d75fb405
...
...
@@ -425,10 +425,14 @@ abstract class TagNode extends Widget {
void
_sync
(
Widget
old
,
dynamic
slot
)
{
Widget
oldChild
=
old
==
null
?
null
:
(
old
as
TagNode
).
child
;
child
=
syncChild
(
child
,
oldChild
,
slot
);
if
(
child
!=
null
)
{
assert
(
child
.
parent
==
this
);
assert
(
child
.
renderObject
!=
null
);
_renderObject
=
child
.
renderObject
;
assert
(
_renderObject
==
renderObject
);
// in case a subclass reintroduces it
}
else
{
_renderObject
=
null
;
}
}
void
updateSlot
(
dynamic
newSlot
)
{
...
...
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