Commit 08edc0a9 authored by Hans Muller's avatar Hans Muller

Animate TwoLevelList leading icon color

parent 550fd208
...@@ -7,6 +7,8 @@ import 'package:flutter/widgets.dart'; ...@@ -7,6 +7,8 @@ import 'package:flutter/widgets.dart';
import 'colors.dart'; import 'colors.dart';
import 'icon.dart'; import 'icon.dart';
import 'icons.dart'; import 'icons.dart';
import 'icon_theme.dart';
import 'icon_theme_data.dart';
import 'list.dart'; import 'list.dart';
import 'list_item.dart'; import 'list_item.dart';
import 'theme.dart'; import 'theme.dart';
...@@ -109,7 +111,9 @@ class _TwoLevelSublistState extends State<TwoLevelSublist> { ...@@ -109,7 +111,9 @@ class _TwoLevelSublistState extends State<TwoLevelSublist> {
), ),
child: new Column( child: new Column(
children: <Widget>[ children: <Widget>[
new TwoLevelListItem( new IconTheme(
data: new IconThemeData(color: _iconColor.evaluate(_easeInAnimation)),
child: new TwoLevelListItem(
onTap: _handleOnTap, onTap: _handleOnTap,
leading: config.leading, leading: config.leading,
title: new DefaultTextStyle( title: new DefaultTextStyle(
...@@ -119,8 +123,8 @@ class _TwoLevelSublistState extends State<TwoLevelSublist> { ...@@ -119,8 +123,8 @@ class _TwoLevelSublistState extends State<TwoLevelSublist> {
trailing: new RotationTransition( trailing: new RotationTransition(
turns: _iconTurns, turns: _iconTurns,
child: new Icon( child: new Icon(
icon: Icons.expand_more, icon: Icons.expand_more
color: _iconColor.evaluate(_easeInAnimation) )
) )
) )
), ),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment