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
fix: text color for local ai model picker (#7855)
Richard Shiue22111cfa535b
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/setting_ai_view/ollama_setting.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/setting_ai_view/ollama_setting.dartindex 10e804e65e..fee14d22a5 100644--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/setting_ai_view/ollama_setting.dart+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/setting_ai_view/ollama_setting.dart@@ -154,6 +154,7 @@ class LocalAIModelSelection extends StatelessWidget {height: 40,child: SettingsDropdown<AIModelPB>(key: const Key('_AIModelSelection'),+ textStyle: Theme.of(context).textTheme.bodySmall,onChanged: (model) => context.read<OllamaSettingBloc>().add(OllamaSettingEvent.setDefaultModel(model)),diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/shared/settings_dropdown.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/shared/settings_dropdown.dartindex e392ed91f0..43e70d224a 100644--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/shared/settings_dropdown.dart+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/shared/settings_dropdown.dart@@ -17,6 +17,7 @@ class SettingsDropdown<T> extends StatefulWidget {this.actions,this.expandWidth = true,this.selectOptionCompare,+ this.textStyle,});final T selectedOption;@@ -25,6 +26,7 @@ class SettingsDropdown<T> extends StatefulWidget {final void Function(T)? onChanged;final List<Widget>? actions;final bool expandWidth;+ final TextStyle? textStyle;@overrideState<SettingsDropdown<T>> createState() => _SettingsDropdownState<T>();@@ -55,10 +57,11 @@ class _SettingsDropdownState<T> extends State<SettingsDropdown<T>> {initialSelection: widget.selectedOption,dropdownMenuEntries: widget.options,selectOptionCompare: widget.selectOptionCompare,- textStyle: Theme.of(context).textTheme.bodyLarge?.copyWith(- fontFamily: fontFamilyUsed,- fontWeight: FontWeight.w400,- ),+ textStyle: widget.textStyle ??+ Theme.of(context).textTheme.bodyLarge?.copyWith(+ fontFamily: fontFamilyUsed,+ fontWeight: FontWeight.w400,+ ),menuStyle: MenuStyle(maximumSize:const WidgetStatePropertyAll(Size(double.infinity, 250)),