@@ -203,6 +203,17 @@ class FormBuilderTextField extends FormBuilderFieldDecoration<String> {
203
203
/// {@endtemplate}
204
204
final GestureTapCallback ? onTap;
205
205
206
+ /// {@template flutter.material.textfield.onTapOutside}
207
+ /// A callback to be invoked when a tap is detected outside of this TapRegion
208
+ /// and any other region with the same groupId, if any.
209
+ ///
210
+ /// The PointerDownEvent passed to the function is the event that caused the
211
+ /// notification. If this region is part of a group (i.e. groupId is set),
212
+ /// then it's possible that the event may be outside of this immediate region,
213
+ /// although it will be within the region of one of the group members.
214
+ /// {@endtemplate}
215
+ final TapRegionCallback ? onTapOutside;
216
+
206
217
/// The cursor for a mouse pointer when it enters or is hovering over the
207
218
/// widget.
208
219
///
@@ -322,6 +333,7 @@ class FormBuilderTextField extends FormBuilderFieldDecoration<String> {
322
333
this .minLines,
323
334
this .showCursor,
324
335
this .onTap,
336
+ this .onTapOutside,
325
337
this .enableSuggestions = false ,
326
338
this .textAlignVertical,
327
339
this .dragStartBehavior = DragStartBehavior .start,
@@ -381,6 +393,7 @@ class FormBuilderTextField extends FormBuilderFieldDecoration<String> {
381
393
expands: expands,
382
394
maxLength: maxLength,
383
395
onTap: onTap,
396
+ onTapOutside: onTapOutside,
384
397
onEditingComplete: onEditingComplete,
385
398
onSubmitted: onSubmitted,
386
399
inputFormatters: inputFormatters,
0 commit comments