2023-06-17 20:57:57 +03:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
final ThemeData baseLigth = ThemeData.light();
|
|
|
|
final ThemeData baseDark = ThemeData.dark();
|
|
|
|
|
|
|
|
class RainTheme {
|
|
|
|
static ThemeData get lightTheme {
|
|
|
|
return baseLigth.copyWith(
|
|
|
|
brightness: Brightness.light,
|
|
|
|
useMaterial3: true,
|
|
|
|
colorScheme: ColorScheme.fromSeed(
|
|
|
|
seedColor: Colors.blue,
|
|
|
|
brightness: Brightness.light,
|
|
|
|
surface: Colors.white,
|
|
|
|
primaryContainer: const Color.fromARGB(255, 245, 245, 245),
|
|
|
|
secondaryContainer: const Color.fromARGB(255, 240, 240, 240),
|
|
|
|
tertiaryContainer: const Color.fromARGB(255, 250, 250, 250),
|
|
|
|
),
|
|
|
|
iconTheme: baseLigth.iconTheme.copyWith(
|
|
|
|
color: Colors.black,
|
|
|
|
),
|
|
|
|
snackBarTheme: const SnackBarThemeData(
|
|
|
|
backgroundColor: Color.fromARGB(255, 225, 225, 225),
|
|
|
|
),
|
|
|
|
bottomNavigationBarTheme: baseLigth.bottomNavigationBarTheme.copyWith(
|
2023-06-27 22:41:25 +03:00
|
|
|
backgroundColor: const Color.fromARGB(255, 240, 240, 240),
|
2023-06-17 20:57:57 +03:00
|
|
|
),
|
|
|
|
unselectedWidgetColor: Colors.grey[350],
|
|
|
|
dividerColor: Colors.black,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2023-07-09 23:41:51 +03:00
|
|
|
static ThemeData get darkTheme {
|
2023-06-17 20:57:57 +03:00
|
|
|
return baseDark.copyWith(
|
|
|
|
brightness: Brightness.dark,
|
|
|
|
useMaterial3: true,
|
|
|
|
colorScheme: ColorScheme.fromSeed(
|
|
|
|
seedColor: Colors.blue,
|
|
|
|
brightness: Brightness.dark,
|
2023-07-09 23:41:51 +03:00
|
|
|
surface: const Color.fromARGB(255, 30, 30, 30),
|
|
|
|
primaryContainer: const Color.fromARGB(255, 40, 40, 40),
|
|
|
|
secondaryContainer: const Color.fromARGB(255, 25, 25, 25),
|
|
|
|
tertiaryContainer: const Color.fromARGB(255, 45, 45, 45),
|
2023-06-17 20:57:57 +03:00
|
|
|
),
|
|
|
|
iconTheme: baseLigth.iconTheme.copyWith(
|
|
|
|
color: Colors.white,
|
|
|
|
),
|
|
|
|
snackBarTheme: const SnackBarThemeData(
|
|
|
|
backgroundColor: Color.fromARGB(255, 55, 55, 55),
|
|
|
|
),
|
|
|
|
bottomNavigationBarTheme: baseLigth.bottomNavigationBarTheme.copyWith(
|
2023-07-09 23:41:51 +03:00
|
|
|
backgroundColor: const Color.fromARGB(255, 28, 28, 28),
|
2023-06-17 20:57:57 +03:00
|
|
|
),
|
2023-07-09 23:41:51 +03:00
|
|
|
unselectedWidgetColor: Colors.grey[850],
|
2023-06-17 20:57:57 +03:00
|
|
|
dividerColor: Colors.white,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2023-07-09 23:41:51 +03:00
|
|
|
static ThemeData get oledTheme {
|
2023-06-17 20:57:57 +03:00
|
|
|
return baseDark.copyWith(
|
|
|
|
brightness: Brightness.dark,
|
|
|
|
useMaterial3: true,
|
|
|
|
colorScheme: ColorScheme.fromSeed(
|
|
|
|
seedColor: Colors.blue,
|
|
|
|
brightness: Brightness.dark,
|
2023-07-09 23:41:51 +03:00
|
|
|
surface: Colors.black,
|
|
|
|
primaryContainer: const Color.fromARGB(255, 15, 15, 15),
|
|
|
|
secondaryContainer: const Color.fromARGB(255, 10, 10, 10),
|
|
|
|
tertiaryContainer: const Color.fromARGB(255, 20, 20, 20),
|
2023-06-17 20:57:57 +03:00
|
|
|
),
|
|
|
|
iconTheme: baseLigth.iconTheme.copyWith(
|
|
|
|
color: Colors.white,
|
|
|
|
),
|
|
|
|
snackBarTheme: const SnackBarThemeData(
|
|
|
|
backgroundColor: Color.fromARGB(255, 55, 55, 55),
|
|
|
|
),
|
|
|
|
bottomNavigationBarTheme: baseLigth.bottomNavigationBarTheme.copyWith(
|
2023-07-09 23:41:51 +03:00
|
|
|
backgroundColor: const Color.fromARGB(255, 10, 10, 10),
|
2023-06-17 20:57:57 +03:00
|
|
|
),
|
2023-07-09 23:41:51 +03:00
|
|
|
unselectedWidgetColor: const Color.fromARGB(255, 20, 20, 20),
|
2023-06-17 20:57:57 +03:00
|
|
|
dividerColor: Colors.white,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|