Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

fix: select name by default (#4630)

Mathias Mogensen9d71464f1a50
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