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.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
chore: add local ai learn more button (#8053)
Richard Shiue8d5019471b38
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/setting_ai_view/local_ai_setting.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/setting_ai_view/local_ai_setting.dartindex 1a36453ae0..24f2d5ecfc 100644--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/setting_ai_view/local_ai_setting.dart+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/setting_ai_view/local_ai_setting.dart@@ -1,11 +1,13 @@+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/workspace/application/settings/ai/local_ai_bloc.dart';import 'package:appflowy/workspace/presentation/widgets/dialogs.dart';import 'package:appflowy/workspace/presentation/widgets/toggle/toggle.dart';+import 'package:appflowy_ui/appflowy_ui.dart';import 'package:easy_localization/easy_localization.dart';import 'package:expandable/expandable.dart';-import 'package:flowy_infra_ui/style_widget/text.dart';-import 'package:flowy_infra_ui/widget/spacing.dart';+import 'package:flowy_infra_ui/flowy_infra_ui.dart';import 'package:flutter/material.dart';import 'package:flutter_bloc/flutter_bloc.dart';@@ -70,14 +72,41 @@ class LocalAiSettingHeader extends StatelessWidget {@overrideWidget build(BuildContext context) {+ final theme = AppFlowyTheme.of(context);+return Row(children: [Expanded(child: Column(crossAxisAlignment: CrossAxisAlignment.start,children: [- FlowyText.medium(- LocaleKeys.settings_aiPage_keys_localAIToggleTitle.tr(),+ Row(+ children: [+ Text(+ LocaleKeys.settings_aiPage_keys_localAIToggleTitle.tr(),+ style: theme.textStyle.body.enhanced(+ color: theme.textColorScheme.primary,+ ),+ ),+ HSpace(theme.spacing.s),+ FlowyTooltip(+ message: LocaleKeys.workspace_learnMore.tr(),+ child: AFGhostButton.normal(+ padding: EdgeInsets.zero,+ builder: (context, isHovering, disabled) {+ return FlowySvg(+ FlowySvgs.ai_explain_m,+ size: Size.square(20),+ );+ },+ onTap: () {+ afLaunchUrlString(+ 'https://appflowy.com/guide/appflowy-local-ai-ollama',+ );+ },+ ),+ ),+ ],),const VSpace(4),FlowyText(