theme.dart 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter/services.dart';
  3. //Colors
  4. const MaterialColor defaultColor = MaterialColor(
  5. 0xffE23D73,
  6. <int, Color>{
  7. 50: Color(0xffE23D73),
  8. 100: Color(0xffE23D73),
  9. 200: Color(0xffE23D73),
  10. 300: Color(0xffE23D73),
  11. 400: Color(0xffE23D73),
  12. 500: Color(0xffE23D73),
  13. 600: Color(0xffE23D73),
  14. 700: Color(0xffE23D73),
  15. 800: Color(0xffE23D73),
  16. 900: Color(0xffE23D73),
  17. },
  18. );
  19. ThemeData appTheme = ThemeData(
  20. buttonTheme: const ButtonThemeData(
  21. buttonColor: defaultColor,
  22. textTheme: ButtonTextTheme.primary,
  23. ),
  24. primarySwatch: defaultColor,
  25. scaffoldBackgroundColor: Colors.white,
  26. canvasColor: Colors.transparent,
  27. appBarTheme: const AppBarTheme(
  28. titleTextStyle: TextStyle(
  29. color: Colors.black,
  30. fontSize: 19.0,
  31. fontFamily: 'MonstMid',
  32. ),
  33. titleSpacing: 19.0,
  34. systemOverlayStyle: SystemUiOverlayStyle(
  35. statusBarColor: Colors.white,
  36. statusBarIconBrightness: Brightness.dark,
  37. ),
  38. backgroundColor: Colors.white,
  39. iconTheme: IconThemeData(
  40. color: Colors.black,
  41. ),
  42. elevation: 0.0,
  43. ),
  44. textTheme: const TextTheme(
  45. bodyLarge: TextStyle(
  46. fontSize: 17.0,
  47. fontWeight: FontWeight.w600,
  48. color: Colors.black,
  49. ),
  50. titleMedium: TextStyle(
  51. fontSize: 13.0,
  52. fontWeight: FontWeight.w600,
  53. color: Colors.black,
  54. height: 1.3,
  55. ),
  56. ),
  57. );