Make the group name editable directly.

This commit is contained in:
stonegate 2020-09-10 18:09:57 +08:00
parent d1668a923f
commit 7d873062ec
1 changed files with 1 additions and 2 deletions

View File

@ -496,7 +496,7 @@ class _RenameGroupState extends State<RenameGroup> {
void initState() {
super.initState();
_error = 0;
_controller = TextEditingController();
_controller = TextEditingController(text: widget.group.name);
}
@override
@ -558,7 +558,6 @@ class _RenameGroupState extends State<RenameGroup> {
TextField(
decoration: InputDecoration(
contentPadding: EdgeInsets.symmetric(horizontal: 10),
hintText: widget.group.name,
hintStyle: TextStyle(fontSize: 18),
filled: true,
focusedBorder: UnderlineInputBorder(