diff --git a/packages/flutter/lib/src/material/floating_action_button.dart b/packages/flutter/lib/src/material/floating_action_button.dart index 06aed53f5a..d4005ccf62 100644 --- a/packages/flutter/lib/src/material/floating_action_button.dart +++ b/packages/flutter/lib/src/material/floating_action_button.dart @@ -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.