mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-11-17 19:07:30 +00:00
chore: add tooltip when import notion file (#6557)
This commit is contained in:
parent
c6f042830f
commit
e86d812ee6
@ -1,3 +1,4 @@
|
||||
import 'package:appflowy/core/helpers/url_launcher.dart';
|
||||
import 'package:appflowy/generated/flowy_svgs.g.dart';
|
||||
import 'package:appflowy/generated/locale_keys.g.dart';
|
||||
import 'package:appflowy/startup/startup.dart';
|
||||
@ -15,6 +16,7 @@ import 'package:flowy_infra/file_picker/file_picker_service.dart';
|
||||
import 'package:flowy_infra_ui/flowy_infra_ui.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:universal_platform/universal_platform.dart';
|
||||
|
||||
import '_sidebar_import_notion.dart';
|
||||
|
||||
@ -88,9 +90,12 @@ class WorkspacesMenu extends StatelessWidget {
|
||||
// add new workspace
|
||||
const _CreateWorkspaceButton(),
|
||||
const VSpace(6.0),
|
||||
|
||||
if (UniversalPlatform.isDesktop) ...[
|
||||
const _ImportNotionButton(),
|
||||
const VSpace(6.0),
|
||||
],
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
@ -375,7 +380,10 @@ class _ImportNotionButton extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return SizedBox(
|
||||
height: 40,
|
||||
child: FlowyButton(
|
||||
child: Stack(
|
||||
alignment: Alignment.centerRight,
|
||||
children: [
|
||||
FlowyButton(
|
||||
key: importNotionButtonKey,
|
||||
onTap: () {
|
||||
_showImportNotinoDialog(context);
|
||||
@ -391,6 +399,22 @@ class _ImportNotionButton extends StatelessWidget {
|
||||
],
|
||||
),
|
||||
),
|
||||
FlowyTooltip(
|
||||
message: LocaleKeys.workspace_learnMore.tr(),
|
||||
preferBelow: true,
|
||||
child: FlowyIconButton(
|
||||
icon: const FlowySvg(
|
||||
FlowySvgs.information_s,
|
||||
),
|
||||
onPressed: () {
|
||||
afLaunchUrlString(
|
||||
'https://docs.appflowy.io/docs/guides/import-from-notion',
|
||||
);
|
||||
},
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -75,6 +75,7 @@
|
||||
"defaultName": "My Workspace",
|
||||
"create": "Create workspace",
|
||||
"importFromNotion": "Import From Notion",
|
||||
"learnMore": "Learn more",
|
||||
"reset": "Reset workspace",
|
||||
"renameWorkspace": "Rename workspace",
|
||||
"workspaceNameCannotBeEmpty": "Workspace name cannot be empty",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user