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 model description UI
Richard Shiueb83b9646780d
diff --git a/frontend/appflowy_flutter/lib/ai/widgets/prompt_input/select_model_menu.dart b/frontend/appflowy_flutter/lib/ai/widgets/prompt_input/select_model_menu.dartindex 1860bd7d63..64a62b902c 100644--- a/frontend/appflowy_flutter/lib/ai/widgets/prompt_input/select_model_menu.dart+++ b/frontend/appflowy_flutter/lib/ai/widgets/prompt_input/select_model_menu.dart@@ -161,16 +161,37 @@ class _ModelItem extends StatelessWidget {@overrideWidget build(BuildContext context) {- return SizedBox(- height: 32,+ return ConstrainedBox(+ constraints: const BoxConstraints(minHeight: 32),child: FlowyButton(onTap: onTap,margin: EdgeInsets.symmetric(horizontal: 8.0, vertical: 6.0),- text: FlowyText(- model.i18n,- overflow: TextOverflow.ellipsis,+ text: Column(+ crossAxisAlignment: CrossAxisAlignment.start,+ children: [+ FlowyText(+ model.i18n,+ figmaLineHeight: 20,+ overflow: TextOverflow.ellipsis,+ color: isSelected ? Theme.of(context).colorScheme.primary : null,+ ),+ if (model.desc.isNotEmpty)+ FlowyText(+ model.desc,+ fontSize: 12,+ figmaLineHeight: 16,+ color: Theme.of(context).hintColor,+ overflow: TextOverflow.ellipsis,+ ),+ ],),- rightIcon: isSelected ? FlowySvg(FlowySvgs.check_s) : null,+ rightIcon: isSelected+ ? FlowySvg(+ FlowySvgs.check_s,+ size: const Size.square(20),+ color: Theme.of(context).colorScheme.primary,+ )+ : null,),);}