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
Removed unused imports & Refactored
Sean RIley Hawkins2ae4762de899
diff --git a/frontend/app_flowy/lib/workspace/presentation/widgets/menu/widget/top_bar.dart b/frontend/app_flowy/lib/workspace/presentation/widgets/menu/widget/top_bar.dartindex 1bd9f19701..83cd352d53 100644--- a/frontend/app_flowy/lib/workspace/presentation/widgets/menu/widget/top_bar.dart+++ b/frontend/app_flowy/lib/workspace/presentation/widgets/menu/widget/top_bar.dart@@ -4,7 +4,6 @@ import 'package:flowy_infra/image.dart';import 'package:flowy_infra_ui/style_widget/icon_button.dart';import 'package:flutter/material.dart';import 'package:flutter_bloc/flutter_bloc.dart';-import 'package:provider/provider.dart';import 'package:flowy_infra/theme.dart';class MenuTopBar extends StatelessWidget {@@ -26,7 +25,7 @@ class MenuTopBar extends StatelessWidget {width: 28,onPressed: () => context.read<MenuBloc>().add(const MenuEvent.collapse()),iconPadding: const EdgeInsets.fromLTRB(4, 4, 4, 4),- icon: svg("home/hide_menu", color: theme.textColor),+ icon: svg("home/hide_menu", color: theme.iconColor),)],),diff --git a/frontend/app_flowy/packages/flowy_infra/lib/theme.dart b/frontend/app_flowy/packages/flowy_infra/lib/theme.dartindex 896d186dc7..bb7f91916a 100644--- a/frontend/app_flowy/packages/flowy_infra/lib/theme.dart+++ b/frontend/app_flowy/packages/flowy_infra/lib/theme.dart@@ -10,7 +10,6 @@ enum ThemeType {const _black = Color(0xff000000);const _grey = Color(0xff808080);const _white = Color(0xFFFFFFFF);-const _main2 = Color(0xff00b7ea);class AppTheme {static ThemeType defaultTheme = ThemeType.light;@@ -46,6 +45,7 @@ class AppTheme {late Color tint8;late Color tint9;late Color textColor;+ late Color iconColor;late Color main1;late Color main2;@@ -89,6 +89,7 @@ class AppTheme {..main1 = const Color(0xff00bcf0)..main2 = const Color(0xff00b7ea)..textColor = _black+ ..iconColor = _black..shadowColor = _black;case ThemeType.dark:@@ -122,6 +123,7 @@ class AppTheme {..main1 = const Color(0xff00bcf0)..main2 = const Color(0xff009cc7)..textColor = _white+ ..iconColor = _white..shadowColor = _white;}}