From 9d71464f1a505187a0d86d79ceeaa359172ead79 Mon Sep 17 00:00:00 2001 From: Mathias Mogensen <42929161+Xazin@users.noreply.github.com> Date: Wed, 7 Feb 2024 21:49:17 +0100 Subject: [PATCH] fix: select name by default (#4630) --- .../bottom_sheet/bottom_sheet_rename_widget.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/bottom_sheet_rename_widget.dart b/frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/bottom_sheet_rename_widget.dart index 618e19e53d..0b0ce92b34 100644 --- a/frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/bottom_sheet_rename_widget.dart +++ b/frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/bottom_sheet_rename_widget.dart @@ -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