theme.dart 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import 'package:flutter/material.dart';
  2. import 'package:google_fonts/google_fonts.dart';
  3. var lightCustomColorScheme = ColorScheme.fromSeed(
  4. seedColor: Colors.purple,
  5. primary: const Color(0xFF4C51C0),
  6. );
  7. var lightCustomTheme = ThemeData(
  8. useMaterial3: true,
  9. colorScheme: lightCustomColorScheme,
  10. navigationBarTheme: NavigationBarThemeData(
  11. labelTextStyle: WidgetStateProperty.all(
  12. TextStyle(
  13. color: lightCustomColorScheme.onSurface,
  14. fontWeight: FontWeight.w500,
  15. ),
  16. ),
  17. ),
  18. textTheme: GoogleFonts.robotoTextTheme(ThemeData.light().textTheme),
  19. );
  20. var darkCustomColorScheme = ColorScheme.fromSeed(
  21. seedColor: Colors.purple,
  22. brightness: Brightness.dark,
  23. primary: const Color(0xFFBFC1FF),
  24. surface: const Color(0xFF131316),
  25. );
  26. var darkCustomTheme = ThemeData(
  27. useMaterial3: true,
  28. colorScheme: darkCustomColorScheme,
  29. navigationBarTheme: NavigationBarThemeData(
  30. labelTextStyle: WidgetStateProperty.all(
  31. TextStyle(
  32. color: darkCustomColorScheme.onSurface,
  33. fontWeight: FontWeight.w500,
  34. ),
  35. ),
  36. ),
  37. canvasColor: const Color(0xFF131316),
  38. scaffoldBackgroundColor: const Color(0xFF131316),
  39. textTheme: GoogleFonts.robotoTextTheme(ThemeData.dark().textTheme),
  40. );