mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 19:14:42 +08:00
opt win selection
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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();
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user