Skip to content

Commit 4bc9c5c

Browse files
committedDec 19, 2024·
Fix CupertinoButton Style
1 parent 86ecb81 commit 4bc9c5c

File tree

6 files changed

+16
-15
lines changed

6 files changed

+16
-15
lines changed
 

‎android/app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ flutter {
116116

117117
dependencies {
118118
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.20"
119-
implementation "androidx.startup:startup-runtime:1.1.1"
119+
implementation "androidx.startup:startup-runtime:1.2.0"
120120
implementation 'com.google.mlkit:barcode-scanning:17.3.0'
121121
}
122122

@@ -129,5 +129,5 @@ configurations.configureEach {
129129
ext {
130130
compileSdkVersion = 34
131131
targetSdkVersion = 34
132-
appCompatVersion = "1.7.0"
132+
appCompatVersion = "1.9.0"
133133
}

‎android/settings.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ plugins {
2020
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
2121
id "com.android.application" version '7.4.2' apply false
2222
id "org.jetbrains.kotlin.android" version "1.7.20" apply false
23-
id "com.google.gms.google-services" version "4.4.0" apply false
23+
id "com.google.gms.google-services" version "4.4.2" apply false
2424
id "com.google.firebase.crashlytics" version "2.9.9" apply false
2525
}
2626

‎lib/common/service/theme_service.dart

-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ class ThemeService extends ProfileService {
3636
return ThemeColors.lightTheme;
3737
case ThemesModeEnum.darkMode:
3838
return _getDarkTheme;
39-
default:
40-
return null;
4139
}
4240
}
4341

‎lib/const/theme_colors.dart

+1
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ class ThemeColors {
182182
brightness: Brightness.light,
183183
barBackgroundColor: navigationBarBackground,
184184
textTheme: ehTextTheme,
185+
primaryColor: CupertinoColors.systemBlue,
185186
// scaffoldBackgroundColor: CupertinoColors.secondarySystemBackground,
186187
);
187188

‎lib/pages/gallery/view/gallery_widget.dart

+6-7
Original file line numberDiff line numberDiff line change
@@ -239,21 +239,20 @@ class ReadButton extends StatelessWidget {
239239
Widget build(BuildContext context) {
240240
return Obx(
241241
() => MouseRegionClick(
242-
child: CupertinoButton(
242+
child: CupertinoButton.filled(
243243
minSize: 24,
244244
padding: const EdgeInsets.symmetric(horizontal: 18, vertical: 6),
245245
borderRadius: BorderRadius.circular(20),
246-
color: CupertinoColors.activeBlue,
246+
// color: CupertinoColors.activeBlue,
247247
onPressed: _pageState.enableRead
248248
? () => _toViewPage(_pageState.galleryProvider?.gid ?? '0',
249249
_pageState.lastIndex)
250250
: null,
251251
child: Text(
252-
(_pageState.lastIndex > 0)
253-
? '${L10n.of(context).read.toUpperCase()} ${_pageState.lastIndex + 1}'
254-
: L10n.of(context).read.toUpperCase(),
255-
style: const TextStyle(fontSize: 15, height: 1.2),
256-
)),
252+
(_pageState.lastIndex > 0)
253+
? '${L10n.of(context).read.toUpperCase()} ${_pageState.lastIndex + 1}'
254+
: L10n.of(context).read.toUpperCase(),
255+
style: const TextStyle(fontSize: 15, height: 1.2))),
257256
),
258257
);
259258
}

‎lib/pages/login/view/login_page.dart

+6-3
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,16 @@ class LoginPage extends GetView<LoginController> {
9797
height: 50,
9898
child: GetBuilder<LoginController>(
9999
builder: (logic) {
100-
return CupertinoButton(
101-
color: CupertinoColors.activeBlue,
100+
return CupertinoButton.filled(
101+
// color: CupertinoColors.activeBlue,
102102
onPressed:
103103
logic.loadingLogin ? null : logic.pressLogin,
104104
child: logic.loadingLogin
105105
? const CupertinoActivityIndicator()
106-
: Text(L10n.of(context).login),
106+
: Text(
107+
L10n.of(context).login,
108+
style: const TextStyle(height: 1.2),
109+
),
107110
);
108111
},
109112
),

0 commit comments

Comments
 (0)
Please sign in to comment.