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.

feat: double tab edit side panel (#5000)

Vivek Vermab51ff318a1e6
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/view/view_item.dart b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/view/view_item.dart
index 41a8cacd10..e58165cc5b 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/view/view_item.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/view/view_item.dart
@@ -409,6 +409,19 @@ class _SingleInnerViewItemState extends State<SingleInnerViewItem> {
behavior: HitTestBehavior.translucent,
onTap: () => widget.onSelected(widget.view),
onTertiaryTapDown: (_) => widget.onTertiarySelected?.call(widget.view),
+ onDoubleTap: isSelected
+ ? () {
+ NavigatorTextFieldDialog(
+ title: LocaleKeys.disclosureAction_rename.tr(),
+ autoSelectAllText: true,
+ value: widget.view.name,
+ maxLength: 256,
+ onConfirm: (newValue, _) {
+ context.read<ViewBloc>().add(ViewEvent.rename(newValue));
+ },
+ ).show(context);
+ }
+ : null,
child: SizedBox(
height: widget.height,
child: Padding(