2021-12-02 13:44:17 +03:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
2022-05-19 09:47:47 +03:00
|
|
|
const primaryGreen = Color(0xffaed581);
|
2022-02-22 12:56:52 +03:00
|
|
|
const accentGreen = Color(0xff9aca3c);
|
|
|
|
const primaryBlue = Color(0xff325f74);
|
2022-02-21 19:07:52 +03:00
|
|
|
|
2021-12-02 13:44:17 +03:00
|
|
|
class AppTheme {
|
|
|
|
static ThemeData get lightTheme => ThemeData(
|
2022-03-28 15:59:07 +03:00
|
|
|
useMaterial3: true,
|
2021-12-02 13:44:17 +03:00
|
|
|
brightness: Brightness.light,
|
2022-02-22 12:56:52 +03:00
|
|
|
colorScheme:
|
|
|
|
ColorScheme.fromSwatch(brightness: Brightness.light).copyWith(
|
|
|
|
primary: primaryBlue,
|
|
|
|
secondary: accentGreen,
|
|
|
|
background: Colors.grey.shade200,
|
|
|
|
),
|
2022-05-19 09:47:47 +03:00
|
|
|
//backgroundColor: Colors.white,
|
2022-02-22 12:56:52 +03:00
|
|
|
toggleableActiveColor: accentGreen,
|
|
|
|
appBarTheme: AppBarTheme(
|
2022-05-19 09:47:47 +03:00
|
|
|
elevation: 0,
|
|
|
|
toolbarHeight: 48,
|
|
|
|
shape:
|
|
|
|
RoundedRectangleBorder(borderRadius: BorderRadius.circular(30)),
|
2022-02-22 12:56:52 +03:00
|
|
|
backgroundColor: Colors.white,
|
|
|
|
foregroundColor: Colors.grey.shade800,
|
|
|
|
),
|
2022-05-19 09:47:47 +03:00
|
|
|
// Mainly used for the OATH dialog view at the moment
|
|
|
|
buttonTheme: ButtonThemeData(
|
|
|
|
colorScheme: ColorScheme.light(
|
2022-05-19 14:53:48 +03:00
|
|
|
secondary: Colors.grey.shade300,
|
|
|
|
onSecondary: Colors.black,
|
2022-05-19 09:47:47 +03:00
|
|
|
primary: primaryGreen,
|
|
|
|
onPrimary: Colors.black,
|
2022-05-19 14:53:48 +03:00
|
|
|
error: const Color(0xffea4335),
|
|
|
|
onError: Colors.white,
|
2022-05-19 09:47:47 +03:00
|
|
|
),
|
|
|
|
),
|
|
|
|
cardTheme: CardTheme(
|
|
|
|
color: Colors.grey.shade300,
|
|
|
|
),
|
2022-04-05 17:36:03 +03:00
|
|
|
floatingActionButtonTheme: const FloatingActionButtonThemeData(
|
|
|
|
backgroundColor: primaryBlue,
|
|
|
|
),
|
2022-05-18 11:30:50 +03:00
|
|
|
fontFamily: 'Roboto',
|
2022-05-19 09:47:47 +03:00
|
|
|
textTheme: const TextTheme(
|
|
|
|
//bodySmall: TextStyle(color: Colors.grey.shade500),
|
|
|
|
//bodyLarge: const TextStyle(color: Colors.white70),
|
|
|
|
//bodyMedium: TextStyle(color: Colors.grey.shade200),
|
|
|
|
//labelSmall: TextStyle(color: Colors.grey.shade500),
|
|
|
|
//labelMedium: TextStyle(color: Colors.cyan.shade200),
|
|
|
|
//labelLarge: TextStyle(color: Colors.cyan.shade500),
|
|
|
|
//titleSmall: TextStyle(color: Colors.grey.shade600),
|
|
|
|
//titleMedium: const TextStyle(),
|
|
|
|
titleLarge: TextStyle(
|
|
|
|
//color: Colors.grey.shade500,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
fontSize: 18),
|
|
|
|
headlineSmall: TextStyle(
|
|
|
|
//color: Colors.grey.shade200,
|
|
|
|
fontWeight: FontWeight.w300,
|
|
|
|
fontSize: 16),
|
2022-02-22 12:56:52 +03:00
|
|
|
),
|
2021-12-02 13:44:17 +03:00
|
|
|
);
|
|
|
|
|
|
|
|
static ThemeData get darkTheme => ThemeData(
|
2022-05-19 09:47:47 +03:00
|
|
|
useMaterial3: true,
|
|
|
|
brightness: Brightness.dark,
|
|
|
|
colorScheme:
|
|
|
|
ColorScheme.fromSwatch(brightness: Brightness.dark).copyWith(
|
|
|
|
primary: primaryGreen,
|
|
|
|
secondary: primaryGreen,
|
|
|
|
),
|
|
|
|
toggleableActiveColor: primaryGreen,
|
|
|
|
appBarTheme: AppBarTheme(
|
|
|
|
elevation: 0,
|
|
|
|
toolbarHeight: 48,
|
|
|
|
shape:
|
|
|
|
RoundedRectangleBorder(borderRadius: BorderRadius.circular(30)),
|
|
|
|
backgroundColor: Colors.transparent,
|
|
|
|
foregroundColor: Colors.grey.shade400,
|
|
|
|
),
|
2022-05-19 14:53:48 +03:00
|
|
|
// Mainly used for the OATH dialog view at the moment
|
2022-05-19 09:47:47 +03:00
|
|
|
buttonTheme: ButtonThemeData(
|
|
|
|
colorScheme: ColorScheme.dark(
|
2022-05-19 14:53:48 +03:00
|
|
|
secondary: Colors.grey.shade800,
|
|
|
|
onSecondary: Colors.white,
|
2022-05-19 09:47:47 +03:00
|
|
|
primary: primaryGreen,
|
|
|
|
onPrimary: Colors.black,
|
2022-05-19 14:53:48 +03:00
|
|
|
error: const Color(0xffea4335),
|
|
|
|
onError: Colors.white,
|
2022-05-19 09:47:47 +03:00
|
|
|
),
|
|
|
|
),
|
|
|
|
cardTheme: CardTheme(
|
|
|
|
color: Colors.grey.shade800,
|
|
|
|
),
|
|
|
|
dialogTheme: const DialogTheme(
|
|
|
|
backgroundColor: Color(0xff323232),
|
|
|
|
),
|
|
|
|
floatingActionButtonTheme: FloatingActionButtonThemeData(
|
|
|
|
foregroundColor: Colors.grey.shade900,
|
|
|
|
backgroundColor: primaryGreen,
|
|
|
|
),
|
|
|
|
fontFamily: 'Roboto',
|
|
|
|
textTheme: TextTheme(
|
|
|
|
bodySmall: TextStyle(color: Colors.grey.shade500),
|
|
|
|
bodyLarge: const TextStyle(color: Colors.white70),
|
|
|
|
bodyMedium: TextStyle(color: Colors.grey.shade200),
|
|
|
|
labelSmall: TextStyle(color: Colors.grey.shade500),
|
|
|
|
labelMedium: TextStyle(color: Colors.cyan.shade200),
|
|
|
|
labelLarge: TextStyle(color: Colors.cyan.shade500),
|
|
|
|
titleSmall: TextStyle(color: Colors.grey.shade600),
|
|
|
|
titleMedium: const TextStyle(),
|
|
|
|
titleLarge: TextStyle(
|
2022-05-18 11:30:50 +03:00
|
|
|
color: Colors.grey.shade500,
|
2022-05-19 09:47:47 +03:00
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
fontSize: 18),
|
|
|
|
headlineSmall: TextStyle(
|
|
|
|
color: Colors.grey.shade200,
|
|
|
|
fontWeight: FontWeight.w300,
|
|
|
|
fontSize: 16),
|
|
|
|
),
|
|
|
|
);
|
2021-12-02 13:44:17 +03:00
|
|
|
}
|