Skip to content

Commit 03d01cc

Browse files
committed
Fixed card themes
1 parent 8279fac commit 03d01cc

File tree

5 files changed

+24
-18
lines changed

5 files changed

+24
-18
lines changed

android/app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if (flutterRoot == null) {
1313

1414
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
1515
if (flutterVersionCode == null) {
16-
flutterVersionCode = '364'
16+
flutterVersionCode = '365'
1717
}
1818

1919
def flutterVersionName = localProperties.getProperty('flutter.versionName')

ios/Runner.xcodeproj/project.pbxproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@
536536
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
537537
CODE_SIGN_IDENTITY = "Apple Development";
538538
CODE_SIGN_STYLE = Automatic;
539-
CURRENT_PROJECT_VERSION = 364;
539+
CURRENT_PROJECT_VERSION = 365;
540540
DEVELOPMENT_ASSET_PATHS = "";
541541
DEVELOPMENT_TEAM = 53KVJRJS99;
542542
ENABLE_BITCODE = NO;
@@ -680,7 +680,7 @@
680680
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
681681
CODE_SIGN_IDENTITY = "Apple Development";
682682
CODE_SIGN_STYLE = Automatic;
683-
CURRENT_PROJECT_VERSION = 364;
683+
CURRENT_PROJECT_VERSION = 365;
684684
DEVELOPMENT_ASSET_PATHS = "";
685685
DEVELOPMENT_TEAM = 53KVJRJS99;
686686
ENABLE_BITCODE = NO;
@@ -718,7 +718,7 @@
718718
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
719719
CODE_SIGN_IDENTITY = "Apple Development";
720720
CODE_SIGN_STYLE = Automatic;
721-
CURRENT_PROJECT_VERSION = 364;
721+
CURRENT_PROJECT_VERSION = 365;
722722
DEVELOPMENT_ASSET_PATHS = "";
723723
DEVELOPMENT_TEAM = 53KVJRJS99;
724724
ENABLE_BITCODE = NO;

lib/main.dart

+4-8
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ import 'package:workmanager/workmanager.dart';
5353

5454
// TODO: CONFIGURE FOR APP RELEASE, include exceptions in Drawer if applicable
5555
const String appVersion = '3.2.2';
56-
const String androidCompilation = '364';
57-
const String iosCompilation = '364';
56+
const String androidCompilation = '365';
57+
const String iosCompilation = '365';
5858

5959
final FirebaseAnalytics analytics = FirebaseAnalytics.instance;
6060

@@ -303,12 +303,8 @@ class MyAppState extends State<MyApp> with WidgetsBindingObserver {
303303
cardColor: _themeProvider.cardColor,
304304
cardTheme: CardTheme(
305305
// Material 3 overrides
306-
surfaceTintColor: _themeProvider.currentTheme == AppTheme.extraDark
307-
? Color.fromARGB(255, 14, 14, 14)
308-
: _themeProvider.currentTheme == AppTheme.dark
309-
? Colors.grey[800]
310-
: null,
311-
color: _themeProvider.currentTheme == AppTheme.extraDark ? Color.fromARGB(255, 14, 14, 14) : Colors.grey[800],
306+
surfaceTintColor: _themeProvider.cardSurfaceTintColor,
307+
color: _themeProvider.cardColor,
312308
),
313309
appBarTheme: AppBarTheme(
314310
systemOverlayStyle: SystemUiOverlayStyle.light,

lib/providers/theme_provider.dart

+15-5
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class ThemeProvider extends ChangeNotifier {
1818
Color? buttonText;
1919
Color? navSelected;
2020
Color? cardColor;
21+
Color? cardSurfaceTintColor;
2122
Color? statusBar;
2223

2324
bool _useMaterial3 = true;
@@ -47,26 +48,32 @@ class ThemeProvider extends ChangeNotifier {
4748
final _colorMainTextLIGHT = Colors.black;
4849
final _colorButtonTextLIGHT = Colors.white;
4950
final _colorNavSelectedLIGHT = Colors.blueGrey[100];
50-
final _colorCardLIGHT = Colors.white;
5151
final _colorStatusBarLIGHT = Colors.blueGrey;
52+
// Cards
53+
final _colorCardLIGHT = Colors.white;
54+
final _surfaceTintCardLIGHT = Colors.white;
5255

5356
// COLORS ##DARK##
5457
final _canvasBackgroundDARK = Colors.grey[900];
5558
final _colorBackgroundDARK = Colors.grey[800];
5659
final _colorMainTextDARK = Colors.grey[50];
5760
final _colorButtonTextDARK = Colors.grey[200];
5861
final _colorNavSelectedDARK = Colors.blueGrey[600];
62+
final _colorStatusBarDARK = Color.fromARGB(255, 37, 37, 37);
63+
// Cards
5964
final _colorCardDARK = Colors.grey[800];
60-
final _colorStatusBarDARK = const Color.fromARGB(255, 37, 37, 37);
65+
final _surfaceTintCardDARK = Colors.grey[800];
6166

6267
// COLORS ##EXTRA DARK##
6368
final _canvasBackgroundExtraDARK = Colors.black;
64-
final _colorBackgroundExtraDARK = const Color(0xFF0C0C0C);
69+
final _colorBackgroundExtraDARK = Color(0xFF0C0C0C);
6570
final _colorMainTextExtraDARK = Colors.grey[50];
6671
final _colorButtonTextExtraDARK = Colors.grey[200];
6772
final _colorNavSelectedExtraDARK = Colors.blueGrey[800];
68-
final _colorCardExtraDARK = const Color(0xFF131313);
69-
final _colorStatusBarExtraDARK = const Color(0xFF0C0C0C);
73+
final _colorStatusBarExtraDARK = Color(0xFF0C0C0C);
74+
// Cards
75+
final _colorCardExtraDARK = Color.fromARGB(255, 14, 14, 14);
76+
final _surfaceTintCardExtraDARK = Color.fromARGB(255, 14, 14, 14);
7077

7178
void _getColors() {
7279
switch (_currentTheme) {
@@ -77,6 +84,7 @@ class ThemeProvider extends ChangeNotifier {
7784
buttonText = _colorButtonTextLIGHT;
7885
navSelected = _colorNavSelectedLIGHT;
7986
cardColor = _colorCardLIGHT;
87+
cardSurfaceTintColor = _surfaceTintCardLIGHT;
8088
statusBar = _colorStatusBarLIGHT;
8189
case AppTheme.dark:
8290
canvas = _canvasBackgroundDARK;
@@ -85,6 +93,7 @@ class ThemeProvider extends ChangeNotifier {
8593
buttonText = _colorButtonTextDARK;
8694
navSelected = _colorNavSelectedDARK;
8795
cardColor = _colorCardDARK;
96+
cardSurfaceTintColor = _surfaceTintCardDARK;
8897
statusBar = _colorStatusBarDARK;
8998
case AppTheme.extraDark:
9099
canvas = _canvasBackgroundExtraDARK;
@@ -93,6 +102,7 @@ class ThemeProvider extends ChangeNotifier {
93102
buttonText = _colorButtonTextExtraDARK;
94103
navSelected = _colorNavSelectedExtraDARK;
95104
cardColor = _colorCardExtraDARK;
105+
cardSurfaceTintColor = _surfaceTintCardExtraDARK;
96106
statusBar = _colorStatusBarExtraDARK;
97107
}
98108
}

lib/utils/changelog.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class ChangeLogState extends State<ChangeLog> {
3939
void _createItems() {
4040
final itemList = <ChangeLogItem>[];
4141

42-
// Build 364 - 05/12/2023
42+
// Build 365 - 06/12/2023
4343

4444
// VERSION 3.2.2
4545
final v3_2_2 = ChangeLogItem();

0 commit comments

Comments
 (0)