Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reland Refactored ListTileTheme: ListTileThemeData, ThemeData.listThemeData #91840

Merged
merged 2 commits into from Oct 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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