themes.dart 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. final ThemeData lightTheme = ThemeData(
  9. useMaterial3: true,
  10. brightness: Brightness.light,
  11. colorScheme: const ColorScheme.light(
  12. primary: Color(0xFFFAFCFF),
  13. background: Color(0xFFFFFFFF),
  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. elevatedButtonTheme: ElevatedButtonThemeData(
  34. style: ElevatedButton.styleFrom(foregroundColor: Colors.blue)));
  35. final ThemeData darkTheme = ThemeData(
  36. useMaterial3: true,
  37. brightness: Brightness.dark,
  38. scaffoldBackgroundColor: Colors.black,
  39. colorScheme: const ColorScheme.dark(
  40. primary: Color(0xFF222429),
  41. background: Color(0xFF414347),
  42. surface: Color(0xFF222429),
  43. onPrimary: Colors.white,
  44. onSecondary: Colors.white),
  45. textTheme: const TextTheme(
  46. bodyMedium: TextStyle(),
  47. bodyLarge: TextStyle(),
  48. bodySmall: TextStyle(),
  49. titleMedium: TextStyle())
  50. .apply(displayColor: Colors.white, bodyColor: Colors.white),
  51. appBarTheme: const AppBarTheme(
  52. elevation: 2.0,
  53. titleTextStyle: TextStyle(
  54. fontSize: 18, fontWeight: FontWeight.bold, color: Colors.white),
  55. backgroundColor: Color(0xFF222429),
  56. foregroundColor: Colors.white),
  57. elevatedButtonTheme: ElevatedButtonThemeData(
  58. style: ElevatedButton.styleFrom(foregroundColor: Colors.blue)));