@@ -73,12 +73,14 @@ class FormBuilderTextField extends FormBuilderField<String> {
73
73
/// {@macro flutter.widgets.editableText.expands}
74
74
final bool expands;
75
75
76
- /// Configuration of toolbar options.
76
+ /// {@macro flutter.widgets.EditableText.contextMenuBuilder}
77
77
///
78
- /// If not set, select all and paste will default to be enabled. Copy and cut
79
- /// will be disabled if [obscureText] is true. If [readOnly] is true,
80
- /// paste and cut will be disabled regardless.
81
- final ToolbarOptions ? toolbarOptions;
78
+ /// If not provided, will build a default menu based on the platform.
79
+ ///
80
+ /// See also:
81
+ ///
82
+ /// * [AdaptiveTextSelectionToolbar] , which is built by default.
83
+ final EditableTextContextMenuBuilder ? contextMenuBuilder;
82
84
83
85
/// {@macro flutter.widgets.editableText.showCursor}
84
86
final bool ? showCursor;
@@ -343,11 +345,11 @@ class FormBuilderTextField extends FormBuilderField<String> {
343
345
this .selectionWidthStyle = ui.BoxWidthStyle .tight,
344
346
this .smartDashesType,
345
347
this .smartQuotesType,
346
- this .toolbarOptions,
347
348
this .selectionHeightStyle = ui.BoxHeightStyle .tight,
348
349
this .autofillHints,
349
350
this .obscuringCharacter = '•' ,
350
351
this .mouseCursor,
352
+ this .contextMenuBuilder,
351
353
this .magnifierConfiguration,
352
354
}) : assert (initialValue == null || controller == null ),
353
355
assert (minLines == null || minLines > 0 ),
@@ -413,8 +415,8 @@ class FormBuilderTextField extends FormBuilderField<String> {
413
415
selectionWidthStyle: selectionWidthStyle,
414
416
smartDashesType: smartDashesType,
415
417
smartQuotesType: smartQuotesType,
416
- toolbarOptions: toolbarOptions,
417
418
mouseCursor: mouseCursor,
419
+ contextMenuBuilder: contextMenuBuilder,
418
420
obscuringCharacter: obscuringCharacter,
419
421
autofillHints: autofillHints,
420
422
magnifierConfiguration: magnifierConfiguration,
0 commit comments