From 007c649c3181e56325b5c3f6767ac69a6168ac88 Mon Sep 17 00:00:00 2001 From: Richard Shiue <71320345+richardshiue@users.noreply.github.com> Date: Wed, 27 Sep 2023 20:02:44 +0800 Subject: [PATCH] fix: still show drag icon while dragging (#3547) * fix: still show drag icon while dragging * chore: use click cursor on windows --- .../database_view/widgets/row/row_property.dart | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/row_property.dart b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/row_property.dart index 1bdf2c3fc7..789b34a98c 100644 --- a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/row_property.dart +++ b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/row_property.dart @@ -1,3 +1,5 @@ +import 'dart:io'; + import 'package:appflowy/generated/flowy_svgs.g.dart'; import 'package:appflowy/generated/locale_keys.g.dart'; import 'package:appflowy/plugins/database_view/application/cell/cell_service.dart'; @@ -67,7 +69,16 @@ class RowPropertyList extends StatelessWidget { child: Stack( children: [ child, - const MouseRegion(cursor: SystemMouseCursors.grabbing), + MouseRegion( + cursor: Platform.isWindows + ? SystemMouseCursors.click + : SystemMouseCursors.grabbing, + child: const SizedBox( + width: 16, + height: 30, + child: FlowySvg(FlowySvgs.drag_element_s), + ), + ), ], ), ), @@ -135,7 +146,9 @@ class _PropertyCellState extends State<_PropertyCell> { final cell = widget.cellBuilder.build(widget.cellContext, style: style); final dragThumb = MouseRegion( - cursor: SystemMouseCursors.grab, + cursor: Platform.isWindows + ? SystemMouseCursors.click + : SystemMouseCursors.grab, child: SizedBox( width: 16, height: 30,