themes.dart 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter/services.dart';
  3. class AppTheme {
  4. static Color primary = Color.fromRGBO(242, 75, 89, 1.000);
  5. static Color secondary = Colors.black;
  6. static Color tertiary = const Color(0xFF060000);
  7. static ThemeData lightTheme = ThemeData.light().copyWith(
  8. useMaterial3: true,
  9. //Scaffold
  10. scaffoldBackgroundColor: Colors.grey[300],
  11. //Tema de AppBar
  12. appBarTheme: AppBarTheme(
  13. color: primary,
  14. foregroundColor: secondary,
  15. systemOverlayStyle: SystemUiOverlayStyle(
  16. statusBarColor: primary,
  17. statusBarIconBrightness: Brightness.dark,
  18. ),
  19. iconTheme: IconThemeData(
  20. color: secondary,
  21. ),
  22. ),
  23. //Tema de floatingActionButton
  24. floatingActionButtonTheme: FloatingActionButtonThemeData(
  25. backgroundColor: primary,
  26. foregroundColor: secondary,
  27. ),
  28. //Tema de progressIndicator
  29. progressIndicatorTheme: ProgressIndicatorThemeData(color: tertiary),
  30. //Tema de DatePicker
  31. datePickerTheme: DatePickerThemeData(
  32. inputDecorationTheme: InputDecorationTheme(
  33. //labelStyle: GoogleFonts.greatVibes(), // Input label
  34. ),
  35. backgroundColor: const Color(0xFFDBDBDB), //secondary,
  36. headerBackgroundColor: primary,
  37. todayBackgroundColor:
  38. const MaterialStatePropertyAll(Color(0xFFDBDBDB)), //primary
  39. todayForegroundColor:
  40. const MaterialStatePropertyAll(Color.fromARGB(255, 0, 0, 0)),
  41. rangePickerBackgroundColor: secondary,
  42. // dayOverlayColor: MaterialStatePropertyAll(primary),
  43. //headerHelpStyle: const TextStyle(fontSize: 18),
  44. ),
  45. );
  46. }