mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-10-27 11:58:35 +03:00
Merge pull request #1951 from hyj1204/fix/double_click_title_issue_1324
fix(appflowy_flutter): fix double click title issue #1324
This commit is contained in:
commit
40c23b7c7d
@ -55,6 +55,13 @@ class _ViewLeftBarItemState extends State<ViewLeftBarItem> {
|
||||
|
||||
return IntrinsicWidth(
|
||||
key: ValueKey(_controller.text),
|
||||
child: GestureDetector(
|
||||
onDoubleTap: () {
|
||||
_controller.selection = TextSelection(
|
||||
baseOffset: 0,
|
||||
extentOffset: _controller.text.length,
|
||||
);
|
||||
},
|
||||
child: TextField(
|
||||
controller: _controller,
|
||||
focusNode: _focusNode,
|
||||
@ -68,6 +75,7 @@ class _ViewLeftBarItemState extends State<ViewLeftBarItem> {
|
||||
// cursorColor: widget.cursorColor,
|
||||
// obscureText: widget.enableObscure,
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user