|
@@ -9,6 +9,9 @@ import 'package:flutter/material.dart';
|
|
|
|
|
|
import 'colors.dart';
|
|
|
|
|
|
+const lightTextStyle = TextStyle(color: Color(0xFF43474D));
|
|
|
+const darkTextStyle = TextStyle(color: Colors.white);
|
|
|
+
|
|
|
final comPDFKitLightTheme = ThemeData(
|
|
|
splashColor: const Color(0x334982E6),
|
|
|
highlightColor: const Color(0x334982E6),
|
|
@@ -27,10 +30,16 @@ final comPDFKitLightTheme = ThemeData(
|
|
|
labelColor: Color(0xFF1460F3),
|
|
|
unselectedLabelColor: Color(0xFF43474D),
|
|
|
),
|
|
|
- textTheme: const TextTheme(
|
|
|
- titleMedium: TextStyle(color: Color(0xFF43474D), fontSize: 16),
|
|
|
- titleLarge: TextStyle(color: Color(0xFF43474D)),
|
|
|
- titleSmall: TextStyle(color: Color(0xFF43474D), fontSize: 14)));
|
|
|
+ textTheme: TextTheme(
|
|
|
+ titleMedium: lightTextStyle.copyWith(fontSize: 16),
|
|
|
+ titleLarge: lightTextStyle.copyWith(fontSize: 22),
|
|
|
+ titleSmall: lightTextStyle.copyWith(fontSize: 14),
|
|
|
+ labelLarge: lightTextStyle.copyWith(fontSize: 14),
|
|
|
+ labelMedium: lightTextStyle.copyWith(fontSize: 12),
|
|
|
+ labelSmall: lightTextStyle.copyWith(fontSize: 11),
|
|
|
+ bodyLarge: lightTextStyle.copyWith(fontSize: 16),
|
|
|
+ bodyMedium: lightTextStyle.copyWith(fontSize: 14),
|
|
|
+ bodySmall: lightTextStyle.copyWith(fontSize: 12)));
|
|
|
|
|
|
final comPDFKitDarkTheme = ThemeData(
|
|
|
highlightColor: const Color(0x334982E6),
|
|
@@ -43,17 +52,23 @@ final comPDFKitDarkTheme = ThemeData(
|
|
|
secondary: Color(0xFF6499FF),
|
|
|
onSecondary: Color(0xFF606773),
|
|
|
background: Color(0xFF414347),
|
|
|
- secondaryContainer: Color(0xFF414347),
|
|
|
+ secondaryContainer: Color(0xFF303238),
|
|
|
),
|
|
|
tabBarTheme: const TabBarTheme(
|
|
|
dividerColor: Color(0xFF6499FF),
|
|
|
labelColor: Color(0xFF6499FF),
|
|
|
unselectedLabelColor: Colors.white,
|
|
|
),
|
|
|
- textTheme: const TextTheme(
|
|
|
- titleMedium: TextStyle(color: Colors.white, fontSize: 16),
|
|
|
- titleLarge: TextStyle(color: Colors.white),
|
|
|
- titleSmall: TextStyle(color: Colors.white, fontSize: 14)));
|
|
|
+ textTheme: TextTheme(
|
|
|
+ titleMedium: darkTextStyle.copyWith(fontSize: 16),
|
|
|
+ titleLarge: darkTextStyle.copyWith(fontSize: 22),
|
|
|
+ titleSmall: darkTextStyle.copyWith(fontSize: 14),
|
|
|
+ labelLarge: darkTextStyle.copyWith(fontSize: 14),
|
|
|
+ labelMedium: darkTextStyle.copyWith(fontSize: 12),
|
|
|
+ labelSmall: darkTextStyle.copyWith(fontSize: 11),
|
|
|
+ bodyLarge: darkTextStyle.copyWith(fontSize: 16),
|
|
|
+ bodyMedium: darkTextStyle.copyWith(fontSize: 14),
|
|
|
+ bodySmall: darkTextStyle.copyWith(fontSize: 12)));
|
|
|
|
|
|
InputDecoration textFieldStyle(BuildContext context) {
|
|
|
return InputDecoration(
|