themes.dart 1.7 KB

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