Fix FloatingActionButton docs for background and foreground properties (#147372)
fixes [Material 3 `FloatingActionButton` background/foreground docs are inconsistent](https://github.com/flutter/flutter/issues/147368)
This commit is contained in:
@@ -266,19 +266,20 @@ class FloatingActionButton extends StatelessWidget {
|
||||
|
||||
/// The default foreground color for icons and text within the button.
|
||||
///
|
||||
/// If this property is null, then the
|
||||
/// [FloatingActionButtonThemeData.foregroundColor] of
|
||||
/// [ThemeData.floatingActionButtonTheme] is used. If that property is also
|
||||
/// null, then the [ColorScheme.onSecondary] color of [ThemeData.colorScheme]
|
||||
/// is used.
|
||||
/// If this property is null, then the [FloatingActionButtonThemeData.foregroundColor]
|
||||
/// of [ThemeData.floatingActionButtonTheme] is used. If that property is also
|
||||
/// null, then the [ColorScheme.onPrimaryContainer] color of [ThemeData.colorScheme]
|
||||
/// is used. If [ThemeData.useMaterial3] is set to false, then the
|
||||
/// [ColorScheme.onSecondary] color of [ThemeData.colorScheme] is used.
|
||||
final Color? foregroundColor;
|
||||
|
||||
/// The button's background color.
|
||||
///
|
||||
/// If this property is null, then the
|
||||
/// [FloatingActionButtonThemeData.backgroundColor] of
|
||||
/// [ThemeData.floatingActionButtonTheme] is used. If that property is also
|
||||
/// null, then the [Theme]'s [ColorScheme.secondary] color is used.
|
||||
/// If this property is null, then the [FloatingActionButtonThemeData.backgroundColor]
|
||||
/// of [ThemeData.floatingActionButtonTheme] is used. If that property is also
|
||||
/// null, then the [ColorScheme.primaryContainer] color of [ThemeData.colorScheme]
|
||||
/// is used. If [ThemeData.useMaterial3] is set to false, then the
|
||||
/// [ColorScheme.secondary] color of [ThemeData.colorScheme] is used.
|
||||
final Color? backgroundColor;
|
||||
|
||||
/// The color to use for filling the button when the button has input focus.
|
||||
|
||||
Reference in New Issue
Block a user