fix: select name by default (#4630)

This commit is contained in:
Mathias Mogensen 2024-02-07 21:49:17 +01:00 committed by GitHub
parent 92ceb2cd7d
commit 9d71464f1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,7 +27,11 @@ class _MobileBottomSheetRenameWidgetState
@override
void initState() {
super.initState();
controller = TextEditingController(text: widget.name);
controller = TextEditingController(text: widget.name)
..selection = TextSelection(
baseOffset: 0,
extentOffset: widget.name.length,
);
}
@override