mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: added tooltip for grid row leading buttons
This commit is contained in:
parent
fcb144e514
commit
32bce890f5
@ -95,7 +95,9 @@
|
|||||||
"tooltip": {
|
"tooltip": {
|
||||||
"lightMode": "Switch to Light mode",
|
"lightMode": "Switch to Light mode",
|
||||||
"darkMode": "Switch to Dark 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": {
|
"notifications": {
|
||||||
"export": {
|
"export": {
|
||||||
@ -215,9 +217,5 @@
|
|||||||
"timeHintTextInTwelveHour": "12:00 AM",
|
"timeHintTextInTwelveHour": "12:00 AM",
|
||||||
"timeHintTextInTwentyFourHour": "12:00"
|
"timeHintTextInTwentyFourHour": "12:00"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"sideBar": {
|
|
||||||
"openSidebar": "Open sidebar",
|
|
||||||
"closeSidebar": "Close sidebar"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,8 @@ import '../cell/cell_accessory.dart';
|
|||||||
import '../cell/cell_container.dart';
|
import '../cell/cell_container.dart';
|
||||||
import '../cell/prelude.dart';
|
import '../cell/prelude.dart';
|
||||||
import 'row_action_sheet.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 {
|
class GridRowWidget extends StatefulWidget {
|
||||||
final RowInfo rowInfo;
|
final RowInfo rowInfo;
|
||||||
@ -122,10 +124,13 @@ class _InsertRowButton extends StatelessWidget {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final theme = context.watch<AppTheme>();
|
final theme = context.watch<AppTheme>();
|
||||||
return FlowyIconButton(
|
return FlowyIconButton(
|
||||||
|
tooltipText: LocaleKeys.tooltip_addNewRow.tr(),
|
||||||
hoverColor: theme.hover,
|
hoverColor: theme.hover,
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 30,
|
height: 30,
|
||||||
onPressed: () => context.read<RowBloc>().add(const RowEvent.createRow()),
|
onPressed: () => context.read<RowBloc>().add(
|
||||||
|
const RowEvent.createRow(),
|
||||||
|
),
|
||||||
iconPadding: const EdgeInsets.all(3),
|
iconPadding: const EdgeInsets.all(3),
|
||||||
icon: svgWidget("home/add"),
|
icon: svgWidget("home/add"),
|
||||||
);
|
);
|
||||||
@ -139,6 +144,7 @@ class _DeleteRowButton extends StatelessWidget {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final theme = context.watch<AppTheme>();
|
final theme = context.watch<AppTheme>();
|
||||||
return FlowyIconButton(
|
return FlowyIconButton(
|
||||||
|
tooltipText: LocaleKeys.tooltip_openMenu.tr(),
|
||||||
hoverColor: theme.hover,
|
hoverColor: theme.hover,
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 30,
|
height: 30,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user