Update app bar theme property docs (#102501)

This commit is contained in:
Joshua Tang 2022-06-03 15:45:26 +10:00 committed by GitHub
parent 1a7a766de5
commit a27fcf1a89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,16 +106,16 @@ class AppBarTheme with Diagnosticable {
///
/// See also:
///
/// * [foregroundColor], which overrides the default value for
/// [AppBar.foregroundColor] in all descendant widgets.
/// * [foregroundColor], which overrides the default value of
/// [AppBar.foregroundColor] in all descendant [AppBar] widgets.
final Color? backgroundColor;
/// Overrides the default value of [AppBar.foregroundColor] in all
/// descendant widgets.
/// descendant [AppBar] widgets.
///
/// See also:
///
/// * [backgroundColor], which overrides the default value for
/// * [backgroundColor], which overrides the default value of
/// [AppBar.backgroundColor] in all descendant [AppBar] widgets.
final Color? foregroundColor;
@ -127,16 +127,16 @@ class AppBarTheme with Diagnosticable {
/// descendant [AppBar] widgets.
final double? scrolledUnderElevation;
/// Overrides the default value for [AppBar.shadowColor] in all
/// descendant widgets.
/// Overrides the default value of [AppBar.shadowColor] in all
/// descendant [AppBar] widgets.
final Color? shadowColor;
/// Overrides the default value for [AppBar.surfaceTintColor] in all
/// descendant widgets.
/// Overrides the default value of [AppBar.surfaceTintColor] in all
/// descendant [AppBar] widgets.
final Color? surfaceTintColor;
/// Overrides the default value for [AppBar.shape] in all
/// descendant widgets.
/// Overrides the default value of [AppBar.shape] in all
/// descendant [AppBar] widgets.
final ShapeBorder? shape;
/// Overrides the default value of [AppBar.iconTheme] in all
@ -144,21 +144,21 @@ class AppBarTheme with Diagnosticable {
///
/// See also:
///
/// * [actionsIconTheme], which overrides the default value for
/// * [actionsIconTheme], which overrides the default value of
/// [AppBar.actionsIconTheme] in all descendant [AppBar] widgets.
/// * [foregroundColor], which overrides the default value
/// [AppBar.foregroundColor] in all descendant widgets.
/// [AppBar.foregroundColor] in all descendant [AppBar] widgets.
final IconThemeData? iconTheme;
/// Overrides the default value of [AppBar.actionsIconTheme] in all
/// descendant widgets.
/// descendant [AppBar] widgets.
///
/// See also:
///
/// * [iconTheme], which overrides the default value for
/// [AppBar.iconTheme] in all descendant widgets.
/// * [iconTheme], which overrides the default value of
/// [AppBar.iconTheme] in all descendant [AppBar] widgets.
/// * [foregroundColor], which overrides the default value
/// [AppBar.foregroundColor] in all descendant widgets.
/// [AppBar.foregroundColor] in all descendant [AppBar] widgets.
final IconThemeData? actionsIconTheme;
/// This property is deprecated, please use [toolbarTextStyle] and
@ -169,9 +169,9 @@ class AppBarTheme with Diagnosticable {
///
/// See also:
///
/// * [toolbarTextStyle], which overrides the default value for
/// * [toolbarTextStyle], which overrides the default value of
/// [AppBar.toolbarTextStyle in all descendant [AppBar] widgets.
/// * [titleTextStyle], which overrides the default value for
/// * [titleTextStyle], which overrides the default value of
/// [AppBar.titleTextStyle in all descendant [AppBar] widgets.
@Deprecated(
'This property is no longer used, please use toolbarTextStyle and titleTextStyle instead. '
@ -179,17 +179,17 @@ class AppBarTheme with Diagnosticable {
)
final TextTheme? textTheme;
/// Overrides the default value for [AppBar.centerTitle].
/// property in all descendant widgets.
/// Overrides the default value of [AppBar.centerTitle]
/// property in all descendant [AppBar] widgets.
final bool? centerTitle;
/// Overrides the default value for the obsolete [AppBar.titleSpacing]
/// Overrides the default value of the obsolete [AppBar.titleSpacing]
/// property in all descendant [AppBar] widgets.
///
/// If null, [AppBar] uses default value of [NavigationToolbar.kMiddleSpacing].
final double? titleSpacing;
/// Overrides the default value for the [AppBar.toolbarHeight]
/// Overrides the default value of the [AppBar.toolbarHeight]
/// property in all descendant [AppBar] widgets.
///
/// See also:
@ -198,7 +198,7 @@ class AppBarTheme with Diagnosticable {
/// height of an AppBar widget, taking this value into account.
final double? toolbarHeight;
/// Overrides the default value for the obsolete [AppBar.toolbarTextStyle]
/// Overrides the default value of the obsolete [AppBar.toolbarTextStyle]
/// property in all descendant [AppBar] widgets.
///
/// If this property is specified, then [backwardsCompatibility]