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
08edc0a9
Commit
08edc0a9
authored
Mar 29, 2016
by
Hans Muller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Animate TwoLevelList leading icon color
parent
550fd208
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
12 deletions
+16
-12
two_level_list.dart
packages/flutter/lib/src/material/two_level_list.dart
+16
-12
No files found.
packages/flutter/lib/src/material/two_level_list.dart
View file @
08edc0a9
...
...
@@ -7,6 +7,8 @@ import 'package:flutter/widgets.dart';
import
'colors.dart'
;
import
'icon.dart'
;
import
'icons.dart'
;
import
'icon_theme.dart'
;
import
'icon_theme_data.dart'
;
import
'list.dart'
;
import
'list_item.dart'
;
import
'theme.dart'
;
...
...
@@ -109,18 +111,20 @@ class _TwoLevelSublistState extends State<TwoLevelSublist> {
),
child:
new
Column
(
children:
<
Widget
>[
new
TwoLevelListItem
(
onTap:
_handleOnTap
,
leading:
config
.
leading
,
title:
new
DefaultTextStyle
(
style:
Theme
.
of
(
context
).
textTheme
.
subhead
.
copyWith
(
color:
_headerColor
.
evaluate
(
_easeInAnimation
)),
child:
config
.
title
),
trailing:
new
RotationTransition
(
turns:
_iconTurns
,
child:
new
Icon
(
icon:
Icons
.
expand_more
,
color:
_iconColor
.
evaluate
(
_easeInAnimation
)
new
IconTheme
(
data:
new
IconThemeData
(
color:
_iconColor
.
evaluate
(
_easeInAnimation
)),
child:
new
TwoLevelListItem
(
onTap:
_handleOnTap
,
leading:
config
.
leading
,
title:
new
DefaultTextStyle
(
style:
Theme
.
of
(
context
).
textTheme
.
subhead
.
copyWith
(
color:
_headerColor
.
evaluate
(
_easeInAnimation
)),
child:
config
.
title
),
trailing:
new
RotationTransition
(
turns:
_iconTurns
,
child:
new
Icon
(
icon:
Icons
.
expand_more
)
)
)
),
...
...
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