themes.dart 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /// Copyright © 2014-2024 PDF Technologies, Inc. All Rights Reserved.
  2. ///
  3. /// THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
  4. /// AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
  5. /// UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
  6. /// This notice may not be removed from this file.
  7. import 'package:flutter/material.dart';
  8. import 'package:flutter/services.dart';
  9. final ThemeData lightTheme = ThemeData(
  10. useMaterial3: true,
  11. brightness: Brightness.light,
  12. colorScheme: const ColorScheme.light(
  13. primary: Color(0xFFFAFCFF),
  14. background: Color(0xFFFFFFFF),
  15. surface: Color(0xFFFAFCFF),
  16. onPrimary: Color(0xFF43474D),
  17. onSecondary: Color(0xFF666666)),
  18. textTheme: const TextTheme(
  19. bodyMedium: TextStyle(),
  20. bodyLarge: TextStyle(),
  21. bodySmall: TextStyle(),
  22. titleMedium: TextStyle())
  23. .apply(
  24. displayColor: const Color(0xFF43474D),
  25. bodyColor: const Color(0xFF43474D)),
  26. appBarTheme: const AppBarTheme(
  27. elevation: 4.0,
  28. titleTextStyle: TextStyle(
  29. fontSize: 18,
  30. fontWeight: FontWeight.bold,
  31. color: Color(0xFF43474D)),
  32. backgroundColor: Color(0xFFFAFCFF),
  33. foregroundColor: Color(0xFF43474D),
  34. systemOverlayStyle: SystemUiOverlayStyle(
  35. systemNavigationBarColor: Color(0xFFFFFFFF)
  36. )),
  37. elevatedButtonTheme: ElevatedButtonThemeData(
  38. style: ElevatedButton.styleFrom(foregroundColor: Colors.blue)));
  39. final ThemeData darkTheme = ThemeData(
  40. useMaterial3: true,
  41. brightness: Brightness.dark,
  42. scaffoldBackgroundColor: Colors.black,
  43. colorScheme: const ColorScheme.dark(
  44. primary: Color(0xFF222429),
  45. background: Color(0xFF414347),
  46. surface: Color(0xFF222429),
  47. onPrimary: Colors.white,
  48. onSecondary: Colors.white),
  49. textTheme: const TextTheme(
  50. bodyMedium: TextStyle(),
  51. bodyLarge: TextStyle(),
  52. bodySmall: TextStyle(),
  53. titleMedium: TextStyle())
  54. .apply(displayColor: Colors.white, bodyColor: Colors.white),
  55. appBarTheme: const AppBarTheme(
  56. elevation: 2.0,
  57. titleTextStyle: TextStyle(
  58. fontSize: 18, fontWeight: FontWeight.bold, color: Colors.white),
  59. backgroundColor: Color(0xFF222429),
  60. foregroundColor: Colors.white,
  61. systemOverlayStyle: SystemUiOverlayStyle(
  62. systemNavigationBarColor: Color(0xFF222429)
  63. )),
  64. elevatedButtonTheme: ElevatedButtonThemeData(
  65. style: ElevatedButton.styleFrom(foregroundColor: Colors.blue)));