import 'package:flutter/material.dart'; import 'package:google_fonts/google_fonts.dart'; var lightCustomColorScheme = ColorScheme.fromSeed( seedColor: Colors.blue, primary: const Color(0xff1B73E8), ); var lightCustomTheme = ThemeData( useMaterial3: true, colorScheme: lightCustomColorScheme, navigationBarTheme: NavigationBarThemeData( labelTextStyle: MaterialStateProperty.all( TextStyle( color: lightCustomColorScheme.secondary, fontWeight: FontWeight.w500, ), ), ), textTheme: GoogleFonts.robotoTextTheme(ThemeData.light().textTheme), ); var darkCustomColorScheme = ColorScheme.fromSeed( seedColor: Colors.blue, brightness: Brightness.dark, primary: const Color(0xffA5CAFF), surface: const Color(0xff1B1A1D), ); var darkCustomTheme = ThemeData( useMaterial3: true, colorScheme: darkCustomColorScheme, navigationBarTheme: NavigationBarThemeData( labelTextStyle: MaterialStateProperty.all( TextStyle( color: darkCustomColorScheme.secondary, fontWeight: FontWeight.w500, ), ), ), canvasColor: const Color(0xff1B1A1D), scaffoldBackgroundColor: const Color(0xff1B1A1D), textTheme: GoogleFonts.robotoTextTheme(ThemeData.dark().textTheme), switchTheme: SwitchThemeData( thumbColor: MaterialStateProperty.resolveWith((Set states) { if (states.contains(MaterialState.disabled)) { return null; } if (states.contains(MaterialState.selected)) { return const Color(0xffA5CAFF); } return null; }), trackColor: MaterialStateProperty.resolveWith((Set states) { if (states.contains(MaterialState.disabled)) { return null; } if (states.contains(MaterialState.selected)) { return const Color(0xffA5CAFF); } return null; }), ), radioTheme: RadioThemeData( fillColor: MaterialStateProperty.resolveWith((Set states) { if (states.contains(MaterialState.disabled)) { return null; } if (states.contains(MaterialState.selected)) { return const Color(0xffA5CAFF); } return null; }), ), checkboxTheme: CheckboxThemeData( fillColor: MaterialStateProperty.resolveWith((Set states) { if (states.contains(MaterialState.disabled)) { return null; } if (states.contains(MaterialState.selected)) { return const Color(0xffA5CAFF); } return null; }), ), );