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,18 +111,20 @@ class _TwoLevelSublistState extends State<TwoLevelSublist> { ...@@ -109,18 +111,20 @@ class _TwoLevelSublistState extends State<TwoLevelSublist> {
), ),
child: new Column( child: new Column(
children: <Widget>[ children: <Widget>[
new TwoLevelListItem( new IconTheme(
onTap: _handleOnTap, data: new IconThemeData(color: _iconColor.evaluate(_easeInAnimation)),
leading: config.leading, child: new TwoLevelListItem(
title: new DefaultTextStyle( onTap: _handleOnTap,
style: Theme.of(context).textTheme.subhead.copyWith(color: _headerColor.evaluate(_easeInAnimation)), leading: config.leading,
child: config.title title: new DefaultTextStyle(
), style: Theme.of(context).textTheme.subhead.copyWith(color: _headerColor.evaluate(_easeInAnimation)),
trailing: new RotationTransition( child: config.title
turns: _iconTurns, ),
child: new Icon( trailing: new RotationTransition(
icon: Icons.expand_more, turns: _iconTurns,
color: _iconColor.evaluate(_easeInAnimation) child: new Icon(
icon: Icons.expand_more
)
) )
) )
), ),
......
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