Unverified Commit 4b82d47b authored by J-P Nurmi's avatar J-P Nurmi Committed by GitHub

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

parent 38dbfa2c
...@@ -127,9 +127,9 @@ class RawMaterialButton extends StatefulWidget { ...@@ -127,9 +127,9 @@ class RawMaterialButton extends StatefulWidget {
/// * [MaterialState.hovered]. /// * [MaterialState.hovered].
/// * [MaterialState.focused]. /// * [MaterialState.focused].
/// * [MaterialState.disabled]. /// * [MaterialState.disabled].
/// {@endtemplate}
/// ///
/// If this property is null, [MaterialStateMouseCursor.clickable] will be used. /// If this property is null, [MaterialStateMouseCursor.clickable] will be used.
/// {@endtemplate}
final MouseCursor? mouseCursor; final MouseCursor? mouseCursor;
/// Defines the default text style, with [Material.textStyle], for the /// Defines the default text style, with [Material.textStyle], for the
......
...@@ -330,6 +330,8 @@ class FloatingActionButton extends StatelessWidget { ...@@ -330,6 +330,8 @@ class FloatingActionButton extends StatelessWidget {
final VoidCallback? onPressed; final VoidCallback? onPressed;
/// {@macro flutter.material.RawMaterialButton.mouseCursor} /// {@macro flutter.material.RawMaterialButton.mouseCursor}
///
/// If this property is null, [MaterialStateMouseCursor.clickable] will be used.
final MouseCursor? mouseCursor; final MouseCursor? mouseCursor;
/// The z-coordinate at which to place this button relative to its parent. /// The z-coordinate at which to place this button relative to its parent.
......
...@@ -131,6 +131,8 @@ class MaterialButton extends StatelessWidget { ...@@ -131,6 +131,8 @@ class MaterialButton extends StatelessWidget {
final ValueChanged<bool>? onHighlightChanged; final ValueChanged<bool>? onHighlightChanged;
/// {@macro flutter.material.RawMaterialButton.mouseCursor} /// {@macro flutter.material.RawMaterialButton.mouseCursor}
///
/// If this property is null, [MaterialStateMouseCursor.clickable] will be used.
final MouseCursor? mouseCursor; final MouseCursor? mouseCursor;
/// Defines the button's base colors, and the defaults for the button's minimum /// Defines the button's base colors, and the defaults for the button's minimum
......
...@@ -230,6 +230,8 @@ class ToggleButtons extends StatelessWidget { ...@@ -230,6 +230,8 @@ class ToggleButtons extends StatelessWidget {
final void Function(int index)? onPressed; final void Function(int index)? onPressed;
/// {@macro flutter.material.RawMaterialButton.mouseCursor} /// {@macro flutter.material.RawMaterialButton.mouseCursor}
///
/// If this property is null, [MaterialStateMouseCursor.clickable] will be used.
final MouseCursor? mouseCursor; final MouseCursor? mouseCursor;
/// Configures the minimum size of the area within which the buttons may /// Configures the minimum size of the area within which the buttons may
...@@ -843,6 +845,8 @@ class _ToggleButton extends StatelessWidget { ...@@ -843,6 +845,8 @@ class _ToggleButton extends StatelessWidget {
final VoidCallback? onPressed; final VoidCallback? onPressed;
/// {@macro flutter.material.RawMaterialButton.mouseCursor} /// {@macro flutter.material.RawMaterialButton.mouseCursor}
///
/// If this property is null, [MaterialStateMouseCursor.clickable] will be used.
final MouseCursor? mouseCursor; final MouseCursor? mouseCursor;
/// The width and color of the button's leading side border. /// The width and color of the button's leading side border.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment