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
947d505c
Commit
947d505c
authored
Jul 29, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #343 from abarth/fix_analyzer
Fix analyzer warnings
parents
7af3a32e
b9a820f2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
feed.dart
packages/flutter/example/fitness/lib/feed.dart
+4
-4
scrollable.dart
packages/flutter/lib/widgets/scrollable.dart
+2
-1
snack_bar.dart
packages/flutter/lib/widgets/snack_bar.dart
+0
-1
No files found.
packages/flutter/example/fitness/lib/feed.dart
View file @
947d505c
...
...
@@ -90,7 +90,7 @@ class FeedFragment extends StatefulComponent {
}
Drawer
buildDrawer
()
{
if
(
_drawerStatus
==
DrawerStatus
.
inactive
)
if
(
_drawerStatus
==
AnimationStatus
.
dismissed
)
return
null
;
return
new
Drawer
(
showing:
_drawerShowing
,
...
...
@@ -122,16 +122,16 @@ class FeedFragment extends StatefulComponent {
}
bool
_drawerShowing
=
false
;
DrawerStatus
_drawerStatus
=
DrawerStatus
.
inactive
;
AnimationStatus
_drawerStatus
=
AnimationStatus
.
dismissed
;
void
_handleOpenDrawer
()
{
setState
(()
{
_drawerShowing
=
true
;
_drawerStatus
=
DrawerStatus
.
active
;
_drawerStatus
=
AnimationStatus
.
forward
;
});
}
void
_handleDrawerStatusChange
(
Drawer
Status
status
)
{
void
_handleDrawerStatusChange
(
Animation
Status
status
)
{
setState
(()
{
_drawerStatus
=
status
;
});
...
...
packages/flutter/lib/widgets/scrollable.dart
View file @
947d505c
...
...
@@ -43,7 +43,8 @@ abstract class Scrollable extends StatefulComponent {
_toEndAnimation
=
new
AnimatedSimulation
(
_tickScrollOffset
);
_toOffsetAnimation
=
new
AnimationPerformance
()
..
addListener
(()
{
scrollTo
(
_toOffsetAnimation
.
variable
.
value
);
AnimatedValue
<
double
>
offset
=
_toOffsetAnimation
.
variable
;
scrollTo
(
offset
.
value
);
});
}
...
...
packages/flutter/lib/widgets/snack_bar.dart
View file @
947d505c
...
...
@@ -9,7 +9,6 @@ import 'package:sky/animation/animation_performance.dart';
import
'package:sky/painting/text_style.dart'
;
import
'package:sky/theme/typography.dart'
as
typography
;
import
'package:sky/widgets/animated_container.dart'
;
import
'package:sky/widgets/animated_component.dart'
;
import
'package:sky/widgets/basic.dart'
;
import
'package:sky/widgets/default_text_style.dart'
;
import
'package:sky/widgets/material.dart'
;
...
...
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