docs: adjust the flutter.material.RawMaterialButton.mouseCursor template (#88470)

This commit is contained in:
J-P Nurmi
2022-02-04 20:38:46 +01:00
committed by GitHub
parent 38dbfa2c52
commit 4b82d47b01
4 changed files with 9 additions and 1 deletions

View File

@@ -127,9 +127,9 @@ class RawMaterialButton extends StatefulWidget {
/// * [MaterialState.hovered].
/// * [MaterialState.focused].
/// * [MaterialState.disabled].
/// {@endtemplate}
///
/// If this property is null, [MaterialStateMouseCursor.clickable] will be used.
/// {@endtemplate}
final MouseCursor? mouseCursor;
/// Defines the default text style, with [Material.textStyle], for the

View File

@@ -330,6 +330,8 @@ class FloatingActionButton extends StatelessWidget {
final VoidCallback? onPressed;
/// {@macro flutter.material.RawMaterialButton.mouseCursor}
///
/// If this property is null, [MaterialStateMouseCursor.clickable] will be used.
final MouseCursor? mouseCursor;
/// The z-coordinate at which to place this button relative to its parent.

View File

@@ -131,6 +131,8 @@ class MaterialButton extends StatelessWidget {
final ValueChanged<bool>? onHighlightChanged;
/// {@macro flutter.material.RawMaterialButton.mouseCursor}
///
/// If this property is null, [MaterialStateMouseCursor.clickable] will be used.
final MouseCursor? mouseCursor;
/// Defines the button's base colors, and the defaults for the button's minimum

View File

@@ -230,6 +230,8 @@ class ToggleButtons extends StatelessWidget {
final void Function(int index)? onPressed;
/// {@macro flutter.material.RawMaterialButton.mouseCursor}
///
/// If this property is null, [MaterialStateMouseCursor.clickable] will be used.
final MouseCursor? mouseCursor;
/// Configures the minimum size of the area within which the buttons may
@@ -843,6 +845,8 @@ class _ToggleButton extends StatelessWidget {
final VoidCallback? onPressed;
/// {@macro flutter.material.RawMaterialButton.mouseCursor}
///
/// If this property is null, [MaterialStateMouseCursor.clickable] will be used.
final MouseCursor? mouseCursor;
/// The width and color of the button's leading side border.