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
a01aa6ff
Commit
a01aa6ff
authored
Sep 26, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix analyzer warnings
parent
c177ecd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
feed.dart
examples/fitness/lib/feed.dart
+4
-7
No files found.
examples/fitness/lib/feed.dart
View file @
a01aa6ff
...
...
@@ -244,13 +244,11 @@ class FeedFragment extends StatefulComponent {
});
}
Anchor
_snackBarAnchor
=
new
Anchor
();
Widget
buildSnackBar
()
{
if
(
_snackBarStatus
==
AnimationStatus
.
dismissed
)
return
null
;
return
new
SnackBar
(
showing:
_isShowingSnackBar
,
anchor:
_snackBarAnchor
,
content:
new
Text
(
"Item deleted."
),
actions:
[
new
SnackBarAction
(
label:
"UNDO"
,
onPressed:
_handleUndo
)],
onDismissed:
()
{
setState
(()
{
_snackBarStatus
=
AnimationStatus
.
dismissed
;
});
}
...
...
@@ -267,11 +265,10 @@ class FeedFragment extends StatefulComponent {
Widget
buildFloatingActionButton
()
{
switch
(
_fitnessMode
)
{
case
FitnessMode
.
feed
:
return
_snackBarAnchor
.
build
(
new
FloatingActionButton
(
child:
new
Icon
(
type:
'content/add'
,
size:
24
),
onPressed:
_handleActionButtonPressed
));
return
new
FloatingActionButton
(
child:
new
Icon
(
type:
'content/add'
,
size:
24
),
onPressed:
_handleActionButtonPressed
);
case
FitnessMode
.
chart
:
return
null
;
}
...
...
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