From 5da8144456ae60e3711f394f0497ec7a919e5cad Mon Sep 17 00:00:00 2001 From: appflowy Date: Mon, 30 May 2022 08:56:08 +0800 Subject: [PATCH] chore: show url cell editor when tap on edit button --- .../plugins/grid/src/widgets/cell/url_cell/url_cell.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/widgets/cell/url_cell/url_cell.dart b/frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/widgets/cell/url_cell/url_cell.dart index db0dcade79..917cee66d2 100644 --- a/frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/widgets/cell/url_cell/url_cell.dart +++ b/frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/widgets/cell/url_cell/url_cell.dart @@ -72,7 +72,10 @@ class _GridURLCellState extends State { return CellEnterRegion( child: Align(alignment: Alignment.centerLeft, child: richText), - expander: _EditCellIndicator(onTap: () {}), + expander: _EditCellIndicator(onTap: () { + final cellContext = widget.cellContextBuilder.build() as GridURLCellContext; + URLCellEditor.show(context, cellContext); + }), ); }, ),