fix: open-row-as-full-page-related launch review issues (#5266)

This commit is contained in:
Richard Shiue 2024-05-06 10:50:28 +08:00 committed by GitHub
parent a69e83c2cb
commit d52042fa4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 46 additions and 33 deletions

View File

@ -13,6 +13,7 @@ import 'package:appflowy/workspace/presentation/settings/widgets/emoji_picker/em
import 'package:appflowy_popover/appflowy_popover.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:flowy_infra_ui/flowy_infra_ui.dart';
import 'package:flowy_infra_ui/widget/flowy_tooltip.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
@ -262,12 +263,15 @@ class RowActionButton extends StatelessWidget {
return AppFlowyPopover(
direction: PopoverDirection.bottomWithLeftAligned,
popupBuilder: (context) => RowActionList(rowController: rowController),
child: FlowyTooltip(
message: LocaleKeys.grid_rowPage_moreRowActions.tr(),
child: FlowyIconButton(
width: 20,
height: 20,
icon: const FlowySvg(FlowySvgs.details_horizontal_s),
iconColorOnHover: Theme.of(context).colorScheme.onSecondary,
),
),
);
}
}

View File

@ -1,4 +1,5 @@
import 'package:appflowy/generated/flowy_svgs.g.dart';
import 'package:appflowy/generated/locale_keys.g.dart';
import 'package:appflowy/plugins/database/application/database_controller.dart';
import 'package:appflowy/plugins/database/application/row/row_controller.dart';
import 'package:appflowy/plugins/database/domain/database_view_service.dart';
@ -9,7 +10,9 @@ import 'package:appflowy/startup/plugin/plugin.dart';
import 'package:appflowy/startup/startup.dart';
import 'package:appflowy/user/application/reminder/reminder_bloc.dart';
import 'package:appflowy/workspace/application/tabs/tabs_bloc.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:flowy_infra_ui/flowy_infra_ui.dart';
import 'package:flowy_infra_ui/widget/flowy_tooltip.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
@ -107,10 +110,13 @@ class _RowDetailPageState extends State<RowDetailPage> {
List<Widget> _actions(BuildContext context) {
return [
if (widget.allowOpenAsFullPage) ...[
FlowyIconButton(
FlowyTooltip(
message: LocaleKeys.grid_rowPage_openAsFullPage.tr(),
child: FlowyIconButton(
width: 20,
height: 20,
icon: const FlowySvg(FlowySvgs.full_view_s),
iconColorOnHover: Theme.of(context).colorScheme.onSurface,
onPressed: () async {
Navigator.of(context).pop();
final databaseId = await DatabaseViewBackendService(
@ -137,6 +143,7 @@ class _RowDetailPageState extends State<RowDetailPage> {
}
},
),
),
const HSpace(4),
],
RowActionButton(rowController: widget.rowController),

View File

@ -759,7 +759,9 @@
"one": "Hide {count} hidden field",
"many": "Hide {count} hidden fields",
"other": "Hide {count} hidden fields"
}
},
"openAsFullPage": "Open as full page",
"moreRowActions": "More row actions"
},
"sort": {
"ascending": "Ascending",