themes.dart 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. surface: Color(0xFFFAFCFF),
  15. onPrimary: Color(0xFF43474D),
  16. onSecondary: Color(0xFF666666)),
  17. textTheme: const TextTheme(
  18. bodyMedium: TextStyle(),
  19. bodyLarge: TextStyle(),
  20. bodySmall: TextStyle(),
  21. titleMedium: TextStyle())
  22. .apply(
  23. displayColor: const Color(0xFF43474D),
  24. bodyColor: const Color(0xFF43474D)),
  25. appBarTheme: const AppBarTheme(
  26. elevation: 4.0,
  27. titleTextStyle: TextStyle(
  28. fontSize: 18,
  29. fontWeight: FontWeight.bold,
  30. color: Color(0xFF43474D)),
  31. backgroundColor: Color(0xFFFAFCFF),
  32. foregroundColor: Color(0xFF43474D),
  33. systemOverlayStyle: SystemUiOverlayStyle(
  34. systemNavigationBarColor: Color(0xFFFFFFFF)
  35. )),
  36. elevatedButtonTheme: ElevatedButtonThemeData(
  37. style: ElevatedButton.styleFrom(foregroundColor: Colors.blue)));
  38. final ThemeData darkTheme = ThemeData(
  39. useMaterial3: true,
  40. brightness: Brightness.dark,
  41. scaffoldBackgroundColor: Colors.black,
  42. colorScheme: const ColorScheme.dark(
  43. primary: Color(0xFF222429),
  44. surface: Color(0xFF222429),
  45. onPrimary: Colors.white,
  46. onSecondary: Colors.white),
  47. textTheme: const TextTheme(
  48. bodyMedium: TextStyle(),
  49. bodyLarge: TextStyle(),
  50. bodySmall: TextStyle(),
  51. titleMedium: TextStyle())
  52. .apply(displayColor: Colors.white, bodyColor: Colors.white),
  53. appBarTheme: const AppBarTheme(
  54. elevation: 2.0,
  55. titleTextStyle: TextStyle(
  56. fontSize: 18, fontWeight: FontWeight.bold, color: Colors.white),
  57. backgroundColor: Color(0xFF222429),
  58. foregroundColor: Colors.white,
  59. systemOverlayStyle: SystemUiOverlayStyle(
  60. systemNavigationBarColor: Color(0xFF222429)
  61. )),
  62. elevatedButtonTheme: ElevatedButtonThemeData(
  63. style: ElevatedButton.styleFrom(foregroundColor: Colors.blue)));