opt win selection

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-09-13 13:41:08 +08:00
parent d0c108538d
commit 0f2908dbc1
5 changed files with 47 additions and 6 deletions

View File

@@ -84,9 +84,11 @@ typedef InputCounterWidgetBuilder =
class _TextFieldSelectionGestureDetectorBuilder
extends TextSelectionGestureDetectorBuilder {
_TextFieldSelectionGestureDetectorBuilder({required RichTextFieldState state})
: _state = state,
super(delegate: state);
_TextFieldSelectionGestureDetectorBuilder({
required RichTextFieldState state,
required super.controller,
}) : _state = state,
super(delegate: state);
final RichTextFieldState _state;
@@ -1373,7 +1375,10 @@ class RichTextFieldState extends State<RichTextField>
void initState() {
super.initState();
_selectionGestureDetectorBuilder =
_TextFieldSelectionGestureDetectorBuilder(state: this);
_TextFieldSelectionGestureDetectorBuilder(
state: this,
controller: widget.controller,
);
// if (widget.controller == null) {
// _createLocalController();
// }