Skip to content

Commit 4b82d47

Browse files
authored
docs: adjust the flutter.material.RawMaterialButton.mouseCursor template (#88470)
1 parent 38dbfa2 commit 4b82d47

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

packages/flutter/lib/src/material/button.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ class RawMaterialButton extends StatefulWidget {
127127
/// * [MaterialState.hovered].
128128
/// * [MaterialState.focused].
129129
/// * [MaterialState.disabled].
130+
/// {@endtemplate}
130131
///
131132
/// If this property is null, [MaterialStateMouseCursor.clickable] will be used.
132-
/// {@endtemplate}
133133
final MouseCursor? mouseCursor;
134134

135135
/// Defines the default text style, with [Material.textStyle], for the

packages/flutter/lib/src/material/floating_action_button.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,8 @@ class FloatingActionButton extends StatelessWidget {
330330
final VoidCallback? onPressed;
331331

332332
/// {@macro flutter.material.RawMaterialButton.mouseCursor}
333+
///
334+
/// If this property is null, [MaterialStateMouseCursor.clickable] will be used.
333335
final MouseCursor? mouseCursor;
334336

335337
/// The z-coordinate at which to place this button relative to its parent.

packages/flutter/lib/src/material/material_button.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ class MaterialButton extends StatelessWidget {
131131
final ValueChanged<bool>? onHighlightChanged;
132132

133133
/// {@macro flutter.material.RawMaterialButton.mouseCursor}
134+
///
135+
/// If this property is null, [MaterialStateMouseCursor.clickable] will be used.
134136
final MouseCursor? mouseCursor;
135137

136138
/// Defines the button's base colors, and the defaults for the button's minimum

packages/flutter/lib/src/material/toggle_buttons.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,8 @@ class ToggleButtons extends StatelessWidget {
230230
final void Function(int index)? onPressed;
231231

232232
/// {@macro flutter.material.RawMaterialButton.mouseCursor}
233+
///
234+
/// If this property is null, [MaterialStateMouseCursor.clickable] will be used.
233235
final MouseCursor? mouseCursor;
234236

235237
/// Configures the minimum size of the area within which the buttons may
@@ -843,6 +845,8 @@ class _ToggleButton extends StatelessWidget {
843845
final VoidCallback? onPressed;
844846

845847
/// {@macro flutter.material.RawMaterialButton.mouseCursor}
848+
///
849+
/// If this property is null, [MaterialStateMouseCursor.clickable] will be used.
846850
final MouseCursor? mouseCursor;
847851

848852
/// The width and color of the button's leading side border.

0 commit comments

Comments
 (0)