Removed unused imports & Refactored

This commit is contained in:
Sean RIley Hawkins 2022-01-10 17:26:46 +02:00
parent 95378dd73a
commit 2ae4762de8
2 changed files with 4 additions and 3 deletions

View File

@ -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),
)
],
),

View File

@ -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;
}
}