2022-08-01 13:30:06 +02:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:google_fonts/google_fonts.dart';
|
2022-08-12 11:42:43 +02:00
|
|
|
import 'package:stacked_themes/stacked_themes.dart';
|
|
|
|
|
|
|
|
import 'app/app.locator.dart';
|
|
|
|
|
|
|
|
final _themeService = locator<ThemeService>();
|
|
|
|
bool isDark = _themeService.isDarkMode;
|
2022-08-01 13:30:06 +02:00
|
|
|
|
|
|
|
var lightTheme = ThemeData.light().copyWith(
|
2022-08-23 18:35:43 +02:00
|
|
|
backgroundColor: const Color.fromARGB(255, 243, 243, 243),
|
2022-08-01 13:30:06 +02:00
|
|
|
navigationBarTheme: NavigationBarThemeData(
|
2022-08-12 11:42:43 +02:00
|
|
|
indicatorColor: const Color.fromRGBO(75, 129, 210, 0.20),
|
|
|
|
backgroundColor: const Color(0xffCBDFFC),
|
2022-08-01 13:30:06 +02:00
|
|
|
labelTextStyle: MaterialStateProperty.all(
|
|
|
|
GoogleFonts.roboto(
|
|
|
|
fontSize: 12,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
useMaterial3: true,
|
2022-08-12 11:42:43 +02:00
|
|
|
textButtonTheme: TextButtonThemeData(
|
|
|
|
style: ButtonStyle(
|
|
|
|
padding: MaterialStateProperty.all<EdgeInsetsGeometry>(
|
|
|
|
const EdgeInsets.symmetric(
|
|
|
|
vertical: 8,
|
2022-08-16 15:06:56 +02:00
|
|
|
horizontal: 14,
|
2022-08-12 11:42:43 +02:00
|
|
|
),
|
|
|
|
),
|
|
|
|
backgroundColor: MaterialStateProperty.all<Color>(
|
|
|
|
const Color(0xff4B7CC6),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
2022-08-01 13:30:06 +02:00
|
|
|
colorScheme: const ColorScheme.light(
|
2022-08-12 11:42:43 +02:00
|
|
|
primary: Color.fromRGBO(154, 193, 252, 0.18),
|
|
|
|
secondary: Color(0xff3868AF),
|
|
|
|
tertiary: Color(0xff485A74),
|
|
|
|
background: Color(0xffDFD5EC),
|
2022-08-01 13:30:06 +02:00
|
|
|
),
|
|
|
|
);
|
|
|
|
|
|
|
|
var darkTheme = ThemeData.dark().copyWith(
|
2022-08-23 18:35:43 +02:00
|
|
|
backgroundColor: const Color(0xff1E1E1E),
|
2022-08-01 13:30:06 +02:00
|
|
|
navigationBarTheme: NavigationBarThemeData(
|
|
|
|
iconTheme: MaterialStateProperty.all(const IconThemeData(
|
|
|
|
color: Colors.white,
|
|
|
|
)),
|
|
|
|
indicatorColor: const Color(0xff223144),
|
|
|
|
backgroundColor: const Color(0x1b222b6b),
|
|
|
|
labelTextStyle: MaterialStateProperty.all(
|
|
|
|
GoogleFonts.roboto(
|
|
|
|
fontSize: 12,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
useMaterial3: true,
|
|
|
|
scaffoldBackgroundColor: const Color(0xff0A0D11),
|
2022-08-12 11:42:43 +02:00
|
|
|
textButtonTheme: TextButtonThemeData(
|
|
|
|
style: ButtonStyle(
|
|
|
|
padding: MaterialStateProperty.all<EdgeInsetsGeometry>(
|
|
|
|
const EdgeInsets.symmetric(
|
|
|
|
vertical: 8,
|
|
|
|
horizontal: 12,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
backgroundColor: MaterialStateProperty.all<Color>(
|
|
|
|
const Color.fromRGBO(119, 146, 168, 1),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
2022-08-01 13:30:06 +02:00
|
|
|
colorScheme: const ColorScheme.dark(
|
2022-08-16 15:06:56 +02:00
|
|
|
primary: Color(0xff11161C),
|
2022-08-12 11:42:43 +02:00
|
|
|
secondary: Color(0xff7792BA),
|
|
|
|
tertiary: Color(0xff8691A0),
|
|
|
|
background: Color(0xff0A0D11),
|
2022-08-01 13:30:06 +02:00
|
|
|
),
|
|
|
|
);
|