From d5360c8c9c981b4f27ac2ef1c83d15a539cabe77 Mon Sep 17 00:00:00 2001 From: appflowy Date: Wed, 10 Nov 2021 19:25:38 +0800 Subject: [PATCH] [flutter]: fix cursor position while renaming the view --- .../workspace/presentation/stack_page/doc/doc_stack_page.dart | 2 -- app_flowy/lib/workspace/presentation/widgets/dialogs.dart | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app_flowy/lib/workspace/presentation/stack_page/doc/doc_stack_page.dart b/app_flowy/lib/workspace/presentation/stack_page/doc/doc_stack_page.dart index f2aa26884b..1e098aae90 100644 --- a/app_flowy/lib/workspace/presentation/stack_page/doc/doc_stack_page.dart +++ b/app_flowy/lib/workspace/presentation/stack_page/doc/doc_stack_page.dart @@ -9,9 +9,7 @@ import 'package:app_flowy/workspace/presentation/widgets/pop_up_action.dart'; import 'package:flowy_infra/size.dart'; import 'package:flowy_infra/theme.dart'; import 'package:flowy_infra_ui/flowy_infra_ui.dart'; -import 'package:flowy_infra_ui/style_widget/text.dart'; import 'package:flowy_infra_ui/widget/rounded_button.dart'; -import 'package:flowy_infra_ui/widget/rounded_input_field.dart'; import 'package:flowy_log/flowy_log.dart'; import 'package:flowy_sdk/protobuf/flowy-workspace-infra/export.pb.dart'; import 'package:flowy_sdk/protobuf/flowy-workspace-infra/view_create.pb.dart'; diff --git a/app_flowy/lib/workspace/presentation/widgets/dialogs.dart b/app_flowy/lib/workspace/presentation/widgets/dialogs.dart index 4a5b740184..b215dcc816 100644 --- a/app_flowy/lib/workspace/presentation/widgets/dialogs.dart +++ b/app_flowy/lib/workspace/presentation/widgets/dialogs.dart @@ -53,7 +53,8 @@ class _CreateTextFieldDialog extends State { VSpace(Insets.sm * 1.5), ], FlowyFormTextInput( - hintText: widget.value, + hintText: "Page name", + initialValue: widget.value, textStyle: const TextStyle(fontSize: 24, fontWeight: FontWeight.w400), autoFocus: true, onChanged: (text) {