107 lines
3.9 KiB
Dart
107 lines
3.9 KiB
Dart
import 'package:flutter/material.dart';
|
|
// import 'package:google_fonts/google_fonts.dart';
|
|
|
|
final ValueNotifier<ThemeMode> themeNotifier = ValueNotifier(ThemeMode.light);
|
|
|
|
const Color peach = Color(0xffffc994);
|
|
const Color golden = Color(0xffffea00);
|
|
const Color green = Color(0xff3d5309);
|
|
const Color greenAccent = Color(0xff688d11);
|
|
const Color black = Color(0xff000000);
|
|
const Color mainBackgroundLight = Color(0xffffffff);
|
|
const Color mainBackgroundDark = Color(0xff000000);
|
|
const Color white = Color(0xffffffff);
|
|
const Color yellow = Colors.yellowAccent;
|
|
const Color progressBlue = Color(0xff8CCBFF);
|
|
const Color menuBlue = Color(0xff99C4E9);
|
|
const Color backgroundBlue = Color(0xFFf0f0f0);
|
|
const Color testBlue = Color(0xffD0EAFF);
|
|
const Color borderGray = Color(0xffABABAB);
|
|
|
|
final Map<int, Color> color = {
|
|
50: const Color.fromRGBO(0, 0, 0, .1),
|
|
100: const Color.fromRGBO(0, 0, 0, .2),
|
|
200: const Color.fromRGBO(0, 0, 0, .3),
|
|
300: const Color.fromRGBO(0, 0, 0, .4),
|
|
400: const Color.fromRGBO(0, 0, 0, .5),
|
|
500: const Color.fromRGBO(0, 0, 0, .6),
|
|
600: const Color.fromRGBO(0, 0, 0, .7),
|
|
700: const Color.fromRGBO(0, 0, 0, .8),
|
|
800: const Color.fromRGBO(0, 0, 0, .9),
|
|
900: const Color.fromRGBO(0, 0, 0, 1),
|
|
};
|
|
|
|
final Map<int, Color> colorWhite = {
|
|
50: const Color.fromRGBO(255, 255, 255, .1),
|
|
100: const Color.fromRGBO(255, 255, 255, .2),
|
|
200: const Color.fromRGBO(255, 255, 255, .3),
|
|
300: const Color.fromRGBO(255, 255, 255, .4),
|
|
400: const Color.fromRGBO(255, 255, 255, .5),
|
|
500: const Color.fromRGBO(255, 255, 255, .6),
|
|
600: const Color.fromRGBO(255, 255, 255, .7),
|
|
700: const Color.fromRGBO(255, 255, 255, .8),
|
|
800: const Color.fromRGBO(255, 255, 255, .9),
|
|
900: const Color.fromRGBO(255, 255, 255, 1),
|
|
};
|
|
|
|
final theme2 = ThemeData(
|
|
useMaterial3: true,
|
|
brightness: Brightness.light,
|
|
fontFamily: 'Nunito',
|
|
// textTheme: GoogleFonts.exo2TextTheme(),
|
|
colorScheme: ColorScheme.light(
|
|
secondaryContainer: Colors.grey,
|
|
primary: MaterialColor(0xFF000000, color),
|
|
surface: MaterialColor(0xFFFFFFFF, colorWhite),
|
|
surfaceContainerHighest: MaterialColor(0xFFFFFFFF, colorWhite),
|
|
onSurface: Colors.black,
|
|
),
|
|
|
|
tabBarTheme: TabBarTheme(
|
|
labelColor: MaterialColor(0xFF000000, color),
|
|
),
|
|
appBarTheme: AppBarTheme(
|
|
iconTheme: IconThemeData(
|
|
color: MaterialColor(0xFF000000, color),
|
|
),
|
|
),
|
|
textTheme: TextTheme(
|
|
titleLarge: TextStyle(fontWeight: FontWeight.w700),
|
|
titleMedium: TextStyle(fontWeight: FontWeight.w700),
|
|
titleSmall: TextStyle(fontWeight: FontWeight.w700),
|
|
bodyLarge: TextStyle(fontWeight: FontWeight.w700),
|
|
bodyMedium: TextStyle(fontWeight: FontWeight.w700),
|
|
bodySmall: TextStyle(fontWeight: FontWeight.w700),
|
|
labelLarge: TextStyle(fontWeight: FontWeight.w700),
|
|
labelMedium: TextStyle(fontWeight: FontWeight.w700),
|
|
labelSmall: TextStyle(fontWeight: FontWeight.w700),
|
|
displayLarge: TextStyle(fontWeight: FontWeight.w700),
|
|
displayMedium: TextStyle(fontWeight: FontWeight.w700),
|
|
displaySmall: TextStyle(fontWeight: FontWeight.w700),
|
|
headlineLarge: TextStyle(fontWeight: FontWeight.w700),
|
|
headlineMedium: TextStyle(fontWeight: FontWeight.w700),
|
|
headlineSmall: TextStyle(fontWeight: FontWeight.w700),
|
|
),
|
|
primarySwatch: MaterialColor(0xFF000000, color),
|
|
visualDensity: VisualDensity.adaptivePlatformDensity,
|
|
);
|
|
final darkTheme2 = ThemeData(
|
|
useMaterial3: true,
|
|
brightness: Brightness.dark,
|
|
fontFamily: 'Nunito',
|
|
// textTheme: GoogleFonts.exo2TextTheme(),
|
|
colorScheme: ColorScheme.dark(
|
|
primary: MaterialColor(0xFFFFFFFF, colorWhite),
|
|
secondary: Colors.lightBlue,
|
|
tertiary: Colors.lightBlue,
|
|
),
|
|
tabBarTheme: TabBarTheme(
|
|
labelColor: MaterialColor(0xFFFFFFFF, colorWhite),
|
|
),
|
|
appBarTheme: AppBarTheme(
|
|
iconTheme: IconThemeData(
|
|
color: MaterialColor(0xFFFFFFFF, colorWhite),
|
|
)),
|
|
primarySwatch: MaterialColor(0xFFFFFFFF, colorWhite),
|
|
visualDensity: VisualDensity.adaptivePlatformDensity,
|
|
);
|