themes.dart 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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(0xFF242424);
  7. static Color quaternary = const Color(0xFFF1F1F3);
  8. static ThemeData lightTheme = ThemeData.light().copyWith(
  9. useMaterial3: true,
  10. //Scaffold
  11. scaffoldBackgroundColor: Color(0xFFE0E0E0),
  12. //Tema de AppBar
  13. appBarTheme: AppBarTheme(
  14. color: primary,
  15. foregroundColor: secondary,
  16. systemOverlayStyle: SystemUiOverlayStyle(
  17. statusBarColor: primary,
  18. statusBarIconBrightness: Brightness.dark,
  19. ),
  20. iconTheme: IconThemeData(
  21. color: secondary,
  22. ),
  23. ),
  24. //Tema de floatingActionButton
  25. floatingActionButtonTheme: FloatingActionButtonThemeData(
  26. backgroundColor: primary,
  27. foregroundColor: secondary,
  28. ),
  29. //Tema de progressIndicator
  30. progressIndicatorTheme: ProgressIndicatorThemeData(color: tertiary),
  31. //Tema de DatePicker
  32. datePickerTheme: DatePickerThemeData(
  33. inputDecorationTheme: InputDecorationTheme(
  34. //labelStyle: GoogleFonts.greatVibes(), // Input label
  35. ),
  36. backgroundColor: const Color(0xFFDBDBDB), //secondary,
  37. headerBackgroundColor: primary,
  38. todayBackgroundColor:
  39. const MaterialStatePropertyAll(Color(0xFFDBDBDB)), //primary
  40. todayForegroundColor:
  41. const MaterialStatePropertyAll(Color.fromARGB(255, 0, 0, 0)),
  42. rangePickerBackgroundColor: secondary,
  43. // dayOverlayColor: MaterialStatePropertyAll(primary),
  44. //headerHelpStyle: const TextStyle(fontSize: 18),
  45. ),
  46. );
  47. }