1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

Add implementations for onShare and onSearchWeb (#2143)

Fixes #2088

## Pre-launch Checklist

- [x] I read the [Flutter Style Guide] _recently_, and have followed its
advice.
- [x] I signed the [CLA].
- [x] I read the [Contributors Guide].
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] All existing and new tests are passing.

---------

Co-authored-by: Brett Morgan <brett.morgan@gmail.com>
This commit is contained in:
Renzo Olivares
2024-01-24 12:23:49 -08:00
committed by GitHub
parent 423663d24c
commit 7dcea5e114
3 changed files with 74 additions and 4 deletions

View File

@@ -28,6 +28,8 @@ class BasicTextField extends StatefulWidget {
VoidCallback? onSelectAll,
VoidCallback? onLookUp,
VoidCallback? onLiveTextInput,
VoidCallback? onSearchWeb,
VoidCallback? onShare,
TextSelectionToolbarAnchors anchors,
) {
return AdaptiveTextSelectionToolbar.editable(
@@ -38,10 +40,9 @@ class BasicTextField extends StatefulWidget {
onSelectAll: onSelectAll,
onLookUp: onLookUp,
onLiveTextInput: onLiveTextInput,
onSearchWeb: onSearchWeb,
onShare: onShare,
anchors: anchors,
// TODO(Renzo-Olivares): https://github.com/flutter/samples/issues/2088
onSearchWeb: null,
onShare: null,
);
}