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
0c05666e
Commit
0c05666e
authored
Feb 25, 2016
by
Ian Hickson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2178 from Hixie/size-obs-4
SizeObserver crusade: Dismissable
parents
28c0d4f4
a78d2c9e
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
127 additions
and
129 deletions
+127
-129
animation_controller.dart
packages/flutter/lib/src/animation/animation_controller.dart
+6
-1
dismissable.dart
packages/flutter/lib/src/widgets/dismissable.dart
+118
-126
transitions.dart
packages/flutter/lib/src/widgets/transitions.dart
+3
-2
No files found.
packages/flutter/lib/src/animation/animation_controller.dart
View file @
0c05666e
...
...
@@ -87,7 +87,12 @@ class AnimationController extends Animation<double>
/// The current value of the animation.
///
/// Setting this value stops the current animation.
/// Setting this value notifies all the listeners that the value
/// changed.
///
/// Setting this value also stops the controller if it is currently
/// running; if this happens, it also notifies all the status
/// listeners.
double
get
value
=>
_value
;
double
_value
;
void
set
value
(
double
newValue
)
{
...
...
packages/flutter/lib/src/widgets/dismissable.dart
View file @
0c05666e
This diff is collapsed.
Click to expand it.
packages/flutter/lib/src/widgets/transitions.dart
View file @
0c05666e
...
...
@@ -79,7 +79,9 @@ class SlideTransition extends AnimatedComponent {
Animation
<
FractionalOffset
>
position
,
this
.
transformHitTests
:
true
,
this
.
child
})
:
position
=
position
,
super
(
key:
key
,
animation:
position
);
})
:
position
=
position
,
super
(
key:
key
,
animation:
position
)
{
assert
(
position
!=
null
);
}
/// The animation that controls the position of the child.
///
...
...
@@ -87,7 +89,6 @@ class SlideTransition extends AnimatedComponent {
/// be translated horizontally by width * dx and vertically by height * dy.
final
Animation
<
FractionalOffset
>
position
;
/// Whether hit testing should be affected by the slide animation.
///
/// If false, hit testing will proceed as if the child was not translated at
...
...
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