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: added tooltip for grid row leading buttons

chiragkr0432bce890f520
diff --git a/frontend/app_flowy/assets/translations/en.json b/frontend/app_flowy/assets/translations/en.json
index c68cfe4263..39ba056cb9 100644
--- a/frontend/app_flowy/assets/translations/en.json
+++ b/frontend/app_flowy/assets/translations/en.json
@@ -95,7 +95,9 @@
"tooltip": {
"lightMode": "Switch to Light mode",
"darkMode": "Switch to Dark mode",
- "openAsPage": "Open as a Page"
+ "openAsPage": "Open as a Page",
+ "addNewRow": "Add a new row",
+ "openMenu": "Click to open menu"
},
"notifications": {
"export": {
@@ -215,9 +217,5 @@
"timeHintTextInTwelveHour": "12:00 AM",
"timeHintTextInTwentyFourHour": "12:00"
}
- },
- "sideBar": {
- "openSidebar": "Open sidebar",
- "closeSidebar": "Close sidebar"
}
}
diff --git a/frontend/app_flowy/lib/plugins/grid/presentation/widgets/row/grid_row.dart b/frontend/app_flowy/lib/plugins/grid/presentation/widgets/row/grid_row.dart
index a4bf813fe5..d560f03fc0 100755
--- a/frontend/app_flowy/lib/plugins/grid/presentation/widgets/row/grid_row.dart
+++ b/frontend/app_flowy/lib/plugins/grid/presentation/widgets/row/grid_row.dart
@@ -14,6 +14,8 @@ import '../cell/cell_accessory.dart';
import '../cell/cell_container.dart';
import '../cell/prelude.dart';
import 'row_action_sheet.dart';
+import "package:app_flowy/generated/locale_keys.g.dart";
+import 'package:easy_localization/easy_localization.dart';
class GridRowWidget extends StatefulWidget {
final RowInfo rowInfo;
@@ -122,10 +124,13 @@ class _InsertRowButton extends StatelessWidget {
Widget build(BuildContext context) {
final theme = context.watch<AppTheme>();
return FlowyIconButton(
+ tooltipText: LocaleKeys.tooltip_addNewRow.tr(),
hoverColor: theme.hover,
width: 20,
height: 30,
- onPressed: () => context.read<RowBloc>().add(const RowEvent.createRow()),
+ onPressed: () => context.read<RowBloc>().add(
+ const RowEvent.createRow(),
+ ),
iconPadding: const EdgeInsets.all(3),
icon: svgWidget("home/add"),
);
@@ -139,6 +144,7 @@ class _DeleteRowButton extends StatelessWidget {
Widget build(BuildContext context) {
final theme = context.watch<AppTheme>();
return FlowyIconButton(
+ tooltipText: LocaleKeys.tooltip_openMenu.tr(),
hoverColor: theme.hover,
width: 20,
height: 30,