Skip to content

Commit

Permalink
chore: adjust view title bar
Browse files Browse the repository at this point in the history
  • Loading branch information
appflowy committed May 31, 2024
1 parent 9f89f0c commit e0b1a94
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions frontend/appflowy_flutter/lib/plugins/ai_chat/chat.dart
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import 'package:appflowy/generated/flowy_svgs.g.dart';
import 'package:appflowy/generated/locale_keys.g.dart';
import 'package:appflowy/plugins/ai_chat/chat_page.dart';
import 'package:appflowy/plugins/util.dart';
import 'package:appflowy/startup/plugin/plugin.dart';
import 'package:appflowy/workspace/application/view_info/view_info_bloc.dart';
import 'package:appflowy/workspace/presentation/home/home_stack.dart';
import 'package:appflowy/workspace/presentation/widgets/tab_bar_item.dart';
import 'package:appflowy/workspace/presentation/widgets/view_title_bar.dart';
import 'package:appflowy_backend/protobuf/flowy-folder/view.pb.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:flowy_infra_ui/style_widget/text.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';

Expand All @@ -25,7 +24,7 @@ class AIChatPluginBuilder extends PluginBuilder {
String get menuName => "AIChat";

@override
FlowySvgData get icon => FlowySvgs.ai_summary_s;
FlowySvgData get icon => FlowySvgs.chat_ai_page_s;

@override
PluginType get pluginType => PluginType.chat;
Expand Down Expand Up @@ -80,10 +79,11 @@ class AIChatPagePluginWidgetBuilder extends PluginWidgetBuilder
int? deletedViewIndex;

@override
Widget get leftBarItem => FlowyText.medium(LocaleKeys.blankPageTitle.tr());
Widget get leftBarItem =>
ViewTitleBar(key: ValueKey(notifier.view.id), view: notifier.view);

@override
Widget tabBarItem(String pluginId) => leftBarItem;
Widget tabBarItem(String pluginId) => ViewTabBarItem(view: notifier.view);

@override
Widget buildWidget({
Expand Down

0 comments on commit e0b1a94

Please sign in to comment.