chore: remove local ai (#5837)

* chore: remove local ai

* chore: flutter analyze
This commit is contained in:
Nathan.fooo 2024-07-30 19:44:08 +08:00 committed by GitHub
parent d52a04a9e3
commit 735a09b333
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 5 deletions

View File

@ -52,11 +52,12 @@ class SettingsAIView extends StatelessWidget {
]; ];
children.add(const _AISearchToggle(value: false)); children.add(const _AISearchToggle(value: false));
children.add( // TODO(nathan): enable local ai
_LocalAIOnBoarding( // children.add(
workspaceId: userProfile.workspaceId, // _LocalAIOnBoarding(
), // workspaceId: userProfile.workspaceId,
); // ),
// );
return SettingsBody( return SettingsBody(
title: LocaleKeys.settings_aiPage_title.tr(), title: LocaleKeys.settings_aiPage_title.tr(),
@ -113,6 +114,7 @@ class _AISearchToggle extends StatelessWidget {
} }
} }
// ignore: unused_element
class _LocalAIOnBoarding extends StatelessWidget { class _LocalAIOnBoarding extends StatelessWidget {
const _LocalAIOnBoarding({required this.workspaceId}); const _LocalAIOnBoarding({required this.workspaceId});
final String workspaceId; final String workspaceId;

View File

@ -212,6 +212,7 @@ class _SettingsBillingViewState extends State<SettingsBillingView> {
// Currently, the AI Local tile is only available on macOS // Currently, the AI Local tile is only available on macOS
// TODO(nathan): enable windows and linux // TODO(nathan): enable windows and linux
// TODO(nathan): enable local ai
// if (Platform.isMacOS) // if (Platform.isMacOS)
// _AITile( // _AITile(
// plan: SubscriptionPlanPB.AiLocal, // plan: SubscriptionPlanPB.AiLocal,

View File

@ -139,6 +139,7 @@ class _SettingsPlanViewState extends State<SettingsPlanView> {
// Currently, the AI Local tile is only available on macOS // Currently, the AI Local tile is only available on macOS
// TODO(nathan): enable windows and linux // TODO(nathan): enable windows and linux
// TODO(nathan): enable local ai
// if (Platform.isMacOS) // if (Platform.isMacOS)
// Flexible( // Flexible(
// child: _AddOnBox( // child: _AddOnBox(