2022-08-01 17:00:06 +05:30
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:google_fonts/google_fonts.dart';
|
2022-08-12 15:12:43 +05:30
|
|
|
|
2022-09-07 12:01:04 +01:00
|
|
|
var lightCustomColorScheme = ColorScheme.fromSeed(
|
|
|
|
seedColor: Colors.blue,
|
|
|
|
brightness: Brightness.light,
|
2022-09-17 04:02:49 -04:00
|
|
|
primary: const Color(0xff1B73E8),
|
2022-09-07 12:01:04 +01:00
|
|
|
);
|
|
|
|
|
2022-09-05 03:32:36 +01:00
|
|
|
var lightCustomTheme = ThemeData(
|
2022-08-01 17:00:06 +05:30
|
|
|
useMaterial3: true,
|
2022-09-07 12:01:04 +01:00
|
|
|
colorScheme: lightCustomColorScheme,
|
2022-09-06 18:07:23 +01:00
|
|
|
navigationBarTheme: NavigationBarThemeData(
|
|
|
|
labelTextStyle: MaterialStateProperty.all(
|
2022-09-07 12:01:04 +01:00
|
|
|
TextStyle(
|
|
|
|
color: lightCustomColorScheme.secondary,
|
2022-09-06 18:07:23 +01:00
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
2022-09-05 03:32:36 +01:00
|
|
|
textTheme: GoogleFonts.robotoTextTheme(ThemeData.light().textTheme),
|
2022-08-01 17:00:06 +05:30
|
|
|
);
|
|
|
|
|
2022-09-07 12:01:04 +01:00
|
|
|
var darkCustomColorScheme = ColorScheme.fromSeed(
|
|
|
|
seedColor: Colors.blue,
|
|
|
|
brightness: Brightness.dark,
|
2022-09-17 04:02:49 -04:00
|
|
|
primary: const Color(0xffA5CAFF),
|
|
|
|
surface: const Color(0xff1B1A1D),
|
2022-09-07 12:01:04 +01:00
|
|
|
);
|
|
|
|
|
2022-09-05 03:32:36 +01:00
|
|
|
var darkCustomTheme = ThemeData(
|
2022-08-01 17:00:06 +05:30
|
|
|
useMaterial3: true,
|
2022-09-07 12:01:04 +01:00
|
|
|
colorScheme: darkCustomColorScheme,
|
2022-09-06 18:07:23 +01:00
|
|
|
navigationBarTheme: NavigationBarThemeData(
|
|
|
|
labelTextStyle: MaterialStateProperty.all(
|
2022-09-07 12:01:04 +01:00
|
|
|
TextStyle(
|
|
|
|
color: darkCustomColorScheme.secondary,
|
2022-09-06 18:07:23 +01:00
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
2022-09-17 04:02:49 -04:00
|
|
|
canvasColor: const Color(0xff1B1A1D),
|
|
|
|
scaffoldBackgroundColor: const Color(0xff1B1A1D),
|
|
|
|
toggleableActiveColor: const Color(0xffA5CAFF),
|
2022-09-05 03:32:36 +01:00
|
|
|
textTheme: GoogleFonts.robotoTextTheme(ThemeData.dark().textTheme),
|
2022-08-01 17:00:06 +05:30
|
|
|
);
|