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
e9fe39e5
Commit
e9fe39e5
authored
May 17, 2016
by
Adam Barth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Explicitly specify linear curves (#3973)
We now required the curve parameter for CurvedAnimation.
parent
d6548133
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
popup_menu.dart
packages/flutter/lib/src/material/popup_menu.dart
+1
-0
toggleable.dart
packages/flutter/lib/src/material/toggleable.dart
+2
-1
No files found.
packages/flutter/lib/src/material/popup_menu.dart
View file @
e9fe39e5
...
@@ -384,6 +384,7 @@ class _PopupMenuRoute<T> extends PopupRoute<T> {
...
@@ -384,6 +384,7 @@ class _PopupMenuRoute<T> extends PopupRoute<T> {
Animation
<
double
>
createAnimation
()
{
Animation
<
double
>
createAnimation
()
{
return
new
CurvedAnimation
(
return
new
CurvedAnimation
(
parent:
super
.
createAnimation
(),
parent:
super
.
createAnimation
(),
curve:
Curves
.
linear
,
reverseCurve:
new
Interval
(
0.0
,
_kMenuCloseIntervalEnd
)
reverseCurve:
new
Interval
(
0.0
,
_kMenuCloseIntervalEnd
)
);
);
}
}
...
...
packages/flutter/lib/src/material/toggleable.dart
View file @
e9fe39e5
...
@@ -46,7 +46,8 @@ abstract class RenderToggleable extends RenderConstrainedBox implements Semantic
...
@@ -46,7 +46,8 @@ abstract class RenderToggleable extends RenderConstrainedBox implements Semantic
value:
_value
?
1.0
:
0.0
value:
_value
?
1.0
:
0.0
);
);
_position
=
new
CurvedAnimation
(
_position
=
new
CurvedAnimation
(
parent:
_positionController
parent:
_positionController
,
curve:
Curves
.
linear
)..
addListener
(
markNeedsPaint
)
)..
addListener
(
markNeedsPaint
)
..
addStatusListener
(
_handlePositionStateChanged
);
..
addStatusListener
(
_handlePositionStateChanged
);
...
...
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