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';
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
)
)
)
),
......
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