mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00: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,18 +55,26 @@ class _ViewLeftBarItemState extends State<ViewLeftBarItem> {
|
|||||||
|
|
||||||
return IntrinsicWidth(
|
return IntrinsicWidth(
|
||||||
key: ValueKey(_controller.text),
|
key: ValueKey(_controller.text),
|
||||||
child: TextField(
|
child: GestureDetector(
|
||||||
controller: _controller,
|
onDoubleTap: () {
|
||||||
focusNode: _focusNode,
|
_controller.selection = TextSelection(
|
||||||
scrollPadding: EdgeInsets.zero,
|
baseOffset: 0,
|
||||||
decoration: const InputDecoration(
|
extentOffset: _controller.text.length,
|
||||||
contentPadding: EdgeInsets.symmetric(vertical: 4.0),
|
);
|
||||||
border: InputBorder.none,
|
},
|
||||||
isDense: true,
|
child: TextField(
|
||||||
|
controller: _controller,
|
||||||
|
focusNode: _focusNode,
|
||||||
|
scrollPadding: EdgeInsets.zero,
|
||||||
|
decoration: const InputDecoration(
|
||||||
|
contentPadding: EdgeInsets.symmetric(vertical: 4.0),
|
||||||
|
border: InputBorder.none,
|
||||||
|
isDense: true,
|
||||||
|
),
|
||||||
|
style: Theme.of(context).textTheme.bodyMedium,
|
||||||
|
// cursorColor: widget.cursorColor,
|
||||||
|
// obscureText: widget.enableObscure,
|
||||||
),
|
),
|
||||||
style: Theme.of(context).textTheme.bodyMedium,
|
|
||||||
// cursorColor: widget.cursorColor,
|
|
||||||
// obscureText: widget.enableObscure,
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user