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
f3b1748c
Commit
f3b1748c
authored
Feb 06, 2016
by
Adam Barth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1646 from abarth/rm_color_transition
Remove ColorTransition
parents
68f33d30
d44e601a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
24 deletions
+0
-24
transitions.dart
packages/flutter/lib/src/widgets/transitions.dart
+0
-24
No files found.
packages/flutter/lib/src/widgets/transitions.dart
View file @
f3b1748c
...
...
@@ -195,30 +195,6 @@ class FadeTransition extends AnimatedComponent {
}
}
/// Animates the background color of a widget.
class
ColorTransition
extends
AnimatedComponent
{
ColorTransition
({
Key
key
,
Animation
<
Color
>
color
,
this
.
child
})
:
color
=
color
,
super
(
key:
key
,
animation:
color
);
/// The animation that controls the color of the background.
///
/// If the current value of the color animation is c, this widget will paint
/// a rectangular background behind the child widget of color c.
final
Animation
<
Color
>
color
;
final
Widget
child
;
Widget
build
(
BuildContext
context
)
{
return
new
DecoratedBox
(
decoration:
new
BoxDecoration
(
backgroundColor:
color
.
value
),
child:
child
);
}
}
/// An interpolation between two relative rects.
///
/// This class specializes the interpolation of Tween<RelativeRect> to be
...
...
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