Skip to content

Commit

Permalink
Reland Refactored ListTileTheme: ListTileThemeData, ThemeData.listThe…
Browse files Browse the repository at this point in the history
…meData (#91840)
  • Loading branch information
HansMuller committed Oct 14, 2021
1 parent ee2c72e commit acab6dc
Show file tree
Hide file tree
Showing 9 changed files with 697 additions and 234 deletions.
2 changes: 1 addition & 1 deletion packages/flutter/lib/src/material/about.dart
Expand Up @@ -125,7 +125,7 @@ class AboutListTile extends StatelessWidget {

/// Whether this list tile is part of a vertically dense list.
///
/// If this property is null, then its value is based on [ListTileTheme.dense].
/// If this property is null, then its value is based on [ListTileThemeData.dense].
///
/// Dense list tiles default to a smaller height.
final bool? dense;
Expand Down
4 changes: 2 additions & 2 deletions packages/flutter/lib/src/material/checkbox_list_tile.dart
Expand Up @@ -214,7 +214,7 @@ class CheckboxListTile extends StatelessWidget {

/// Whether this list tile is part of a vertically dense list.
///
/// If this property is null then its value is based on [ListTileTheme.dense].
/// If this property is null then its value is based on [ListTileThemeData.dense].
final bool? dense;

/// Whether to render icons and text in the [activeColor].
Expand Down Expand Up @@ -252,7 +252,7 @@ class CheckboxListTile extends StatelessWidget {
/// If tristate is false (the default), [value] must not be null.
final bool tristate;

/// {@macro flutter.material.ListTileTheme.shape}
/// {@macro flutter.material.ListTile.shape}
final ShapeBorder? shape;

/// If non-null, defines the background color when [CheckboxListTile.selected] is true.
Expand Down
10 changes: 5 additions & 5 deletions packages/flutter/lib/src/material/expansion_tile.dart
Expand Up @@ -21,7 +21,7 @@ const Duration _kExpand = Duration(milliseconds: 200);
/// [ExpansionTile] to save and restore its expanded state when it is scrolled
/// in and out of view.
///
/// This class overrides the [ListTileTheme.iconColor] and [ListTileTheme.textColor]
/// This class overrides the [ListTileThemeData.iconColor] and [ListTileThemeData.textColor]
/// theme properties for its [ListTile]. These colors animate between values when
/// the tile is expanded and collapsed: between [iconColor], [collapsedIconColor] and
/// between [textColor] and [collapsedTextColor].
Expand Down Expand Up @@ -176,23 +176,23 @@ class ExpansionTile extends StatefulWidget {

/// The icon color of tile's expansion arrow icon when the sublist is expanded.
///
/// Used to override to the [ListTileTheme.iconColor].
/// Used to override to the [ListTileThemeData.iconColor].
final Color? iconColor;

/// The icon color of tile's expansion arrow icon when the sublist is collapsed.
///
/// Used to override to the [ListTileTheme.iconColor].
/// Used to override to the [ListTileThemeData.iconColor].
final Color? collapsedIconColor;


/// The color of the tile's titles when the sublist is expanded.
///
/// Used to override to the [ListTileTheme.textColor].
/// Used to override to the [ListTileThemeData.textColor].
final Color? textColor;

/// The color of the tile's titles when the sublist is collapsed.
///
/// Used to override to the [ListTileTheme.textColor].
/// Used to override to the [ListTileThemeData.textColor].
final Color? collapsedTextColor;

/// Typically used to force the expansion arrow icon to the tile's leading or trailing edge.
Expand Down

0 comments on commit acab6dc

Please sign in to comment.