Add DropdownMenu cursor behavior sample (#146133)
fixes [Add `DropdownMenu` cursor behavior sample to `DropdownMenu.enabled` & `DropdownMenu.requestFocusOnTap` docs](https://github.com/flutter/flutter/issues/146131) ### Preview 
This commit is contained in:
@@ -170,6 +170,13 @@ class DropdownMenu<T> extends StatefulWidget {
|
||||
/// Determine if the [DropdownMenu] is enabled.
|
||||
///
|
||||
/// Defaults to true.
|
||||
///
|
||||
/// {@tool dartpad}
|
||||
/// This sample demonstrates how the [enabled] and [requestFocusOnTap] properties
|
||||
/// affect the textfield's hover cursor.
|
||||
///
|
||||
/// ** See code in examples/api/lib/material/dropdown_menu/dropdown_menu.2.dart **
|
||||
/// {@end-tool}
|
||||
final bool enabled;
|
||||
|
||||
/// Determine the width of the [DropdownMenu].
|
||||
@@ -338,6 +345,13 @@ class DropdownMenu<T> extends StatefulWidget {
|
||||
/// focus when activated.
|
||||
///
|
||||
/// Set this to true or false explicitly to override the default behavior.
|
||||
///
|
||||
/// {@tool dartpad}
|
||||
/// This sample demonstrates how the [enabled] and [requestFocusOnTap] properties
|
||||
/// affect the textfield's hover cursor.
|
||||
///
|
||||
/// ** See code in examples/api/lib/material/dropdown_menu/dropdown_menu.2.dart **
|
||||
/// {@end-tool}
|
||||
final bool? requestFocusOnTap;
|
||||
|
||||
/// Descriptions of the menu items in the [DropdownMenu].
|
||||
|
||||
Reference in New Issue
Block a user