File tree Expand file tree Collapse file tree 10 files changed +39
-15
lines changed Expand file tree Collapse file tree 10 files changed +39
-15
lines changed Original file line number Diff line number Diff line change @@ -84,8 +84,8 @@ android {
84
84
applicationId packageName
85
85
minSdkVersion 21
86
86
targetSdkVersion 30
87
- versionCode 10006020
88
- versionName " 0.6.2 sketch "
87
+ versionCode 10006030
88
+ versionName " 0.6.3 elden "
89
89
}
90
90
compileOptions {
91
91
sourceCompatibility JavaVersion . VERSION_1_8
Original file line number Diff line number Diff line change 15
15
*/
16
16
17
17
class Constants {
18
- static String tagName = "0.6.2 " ;
18
+ static String tagName = "0.6.3 " ;
19
19
static const isGooglePlay =
20
20
bool .fromEnvironment ("IS_GOOGLEPLAY" , defaultValue: false );
21
21
static int type = 0 ;
Original file line number Diff line number Diff line change @@ -121,9 +121,19 @@ class _MyAppState extends State<MyApp> {
121
121
title: 'PixEz' ,
122
122
builder: BotToastInit (),
123
123
themeMode: userSetting.themeMode,
124
- theme: userSetting.themeData,
124
+ theme: ThemeData .light ().copyWith (
125
+ primaryColor: userSetting.themeData.colorScheme.primary,
126
+ primaryColorLight: userSetting.themeData.colorScheme.primary,
127
+ primaryColorDark: userSetting.themeData.colorScheme.primary,
128
+ colorScheme: ThemeData .light ().colorScheme.copyWith (
129
+ secondary: userSetting.themeData.colorScheme.secondary,
130
+ primary: userSetting.themeData.colorScheme.primary,
131
+ )),
125
132
darkTheme: ThemeData .dark ().copyWith (
126
133
scaffoldBackgroundColor: userSetting.isAMOLED ? Colors .black : null ,
134
+ primaryColor: userSetting.themeData.colorScheme.primary,
135
+ primaryColorLight: userSetting.themeData.colorScheme.primary,
136
+ primaryColorDark: userSetting.themeData.colorScheme.primary,
127
137
colorScheme: ThemeData .dark ().colorScheme.copyWith (
128
138
secondary: userSetting.themeData.colorScheme.secondary,
129
139
primary: userSetting.themeData.colorScheme.primary),
Original file line number Diff line number Diff line change @@ -75,11 +75,12 @@ class _AndroidHelloPageState extends State<AndroidHelloPage> {
75
75
child: Observer (builder: (context) {
76
76
if (accountStore.now != null &&
77
77
(Platform .isIOS || Platform .isAndroid)) {
78
- return LayoutBuilder (builder: (context, constraint) {
79
- if (constraint.maxHeight > constraint.maxWidth)
80
- return _buildPadScafford (context, constraint);
81
- return _buildScaffold (context);
82
- });
78
+ return _buildScaffold (context);
79
+ // return LayoutBuilder(builder: (context, constraint) {
80
+ // if (constraint.maxHeight > constraint.maxWidth)
81
+ // return _buildPadScafford(context, constraint);
82
+ // return _buildScaffold(context);
83
+ // });
83
84
}
84
85
return LoginPage ();
85
86
}),
Original file line number Diff line number Diff line change 17
17
import 'dart:async' ;
18
18
19
19
import 'package:flutter/material.dart' ;
20
+ import 'package:flutter/services.dart' ;
20
21
import 'package:flutter_mobx/flutter_mobx.dart' ;
21
22
import 'package:pixez/i18n.dart' ;
22
23
import 'package:pixez/main.dart' ;
@@ -168,7 +169,6 @@ class _RankPageState extends State<RankPage>
168
169
children: < Widget > [
169
170
AppBar (
170
171
elevation: 0.0 ,
171
- backgroundColor: Colors .transparent,
172
172
title: Text (I18n .of (context).choice_you_like),
173
173
actions: < Widget > [
174
174
IconButton (
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import 'dart:io';
19
19
20
20
import 'package:extended_image/extended_image.dart' ;
21
21
import 'package:flutter/material.dart' ;
22
+ import 'package:flutter/services.dart' ;
22
23
import 'package:flutter_mobx/flutter_mobx.dart' ;
23
24
import 'package:pixez/component/illust_card.dart' ;
24
25
import 'package:pixez/component/spotlight_card.dart' ;
@@ -130,6 +131,8 @@ class _RecomSpolightPageState extends State<RecomSpolightPage>
130
131
SliverAppBar (
131
132
elevation: 0.0 ,
132
133
titleSpacing: 0.0 ,
134
+ systemOverlayStyle: SystemUiOverlayStyle (
135
+ statusBarIconBrightness: Brightness .dark),
133
136
automaticallyImplyLeading: false ,
134
137
backgroundColor: Colors .transparent,
135
138
title: _buildFirstRow (context),
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import 'dart:io';
19
19
import 'package:flutter/cupertino.dart' ;
20
20
import 'package:flutter/foundation.dart' ;
21
21
import 'package:flutter/material.dart' ;
22
+ import 'package:flutter/services.dart' ;
22
23
import 'package:flutter_mobx/flutter_mobx.dart' ;
23
24
import 'package:path_provider/path_provider.dart' ;
24
25
import 'package:pixez/component/new_version_chip.dart' ;
@@ -100,6 +101,8 @@ class _SettingPageState extends State<SettingPage> {
100
101
AppBar (
101
102
elevation: 0.0 ,
102
103
automaticallyImplyLeading: false ,
104
+ systemOverlayStyle: SystemUiOverlayStyle (
105
+ statusBarIconBrightness: Brightness .dark),
103
106
backgroundColor: Colors .transparent,
104
107
actions: [
105
108
if (kDebugMode)
@@ -358,7 +361,7 @@ class _SettingPageState extends State<SettingPage> {
358
361
}
359
362
360
363
_showCacheBottomSheet (BuildContext context) async {
361
- final result = await showModalBottomSheet (
364
+ final result = await showModalBottomSheet (
362
365
context: context,
363
366
shape: const RoundedRectangleBorder (
364
367
borderRadius: BorderRadius .only (
Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ class _ResultPageState extends State<ResultPage> {
50
50
child: Scaffold (
51
51
appBar: AppBar (
52
52
elevation: 0.0 ,
53
- backgroundColor: Colors .transparent,
54
53
title: TabBar (
55
54
indicatorSize: TabBarIndicatorSize .label,
56
55
indicator: MD2Indicator (
Original file line number Diff line number Diff line change 17
17
import 'dart:io' ;
18
18
import 'dart:ui' ;
19
19
import 'package:flutter/material.dart' ;
20
+ import 'package:flutter/services.dart' ;
20
21
import 'package:flutter_mobx/flutter_mobx.dart' ;
21
22
import 'package:pixez/component/pixiv_image.dart' ;
22
23
import 'package:pixez/i18n.dart' ;
@@ -327,6 +328,8 @@ class _SearchPageState extends State<SearchPage> with TickerProviderStateMixin {
327
328
elevation: 0.0 ,
328
329
titleSpacing: 0.0 ,
329
330
automaticallyImplyLeading: false ,
331
+ systemOverlayStyle: SystemUiOverlayStyle (
332
+ statusBarIconBrightness: Brightness .dark),
330
333
leading: RotationTransition (
331
334
alignment: Alignment .center,
332
335
turns: animation,
Original file line number Diff line number Diff line change @@ -63,7 +63,8 @@ class _PhotoViewerPageState extends State<PhotoViewerPage>
63
63
@override
64
64
void dispose () {
65
65
if (Platform .isAndroid || Platform .isIOS)
66
- SystemChrome .setEnabledSystemUIMode (SystemUiMode .edgeToEdge);
66
+ SystemChrome .setEnabledSystemUIMode (SystemUiMode .manual,
67
+ overlays: [SystemUiOverlay .top, SystemUiOverlay .bottom]);
67
68
_doubleClickAnimationController.dispose ();
68
69
rebuildIndex.close ();
69
70
rebuildSwiper.close ();
@@ -91,7 +92,7 @@ class _PhotoViewerPageState extends State<PhotoViewerPage>
91
92
super .initState ();
92
93
index = widget.index;
93
94
if (Platform .isAndroid || Platform .isIOS)
94
- SystemChrome .setEnabledSystemUIMode (SystemUiMode .leanBack );
95
+ SystemChrome .setEnabledSystemUIMode (SystemUiMode .manual, overlays : [] );
95
96
}
96
97
97
98
Widget _buildContent (BuildContext context) {
@@ -338,7 +339,11 @@ class _PhotoViewerPageState extends State<PhotoViewerPage>
338
339
onPressed: () async {
339
340
if (Platform .isAndroid || Platform .isIOS)
340
341
await SystemChrome .setEnabledSystemUIMode (
341
- SystemUiMode .edgeToEdge);
342
+ SystemUiMode .manual,
343
+ overlays: [
344
+ SystemUiOverlay .top,
345
+ SystemUiOverlay .bottom
346
+ ]);
342
347
Navigator .of (context).pop ();
343
348
}),
344
349
IconButton (
You can’t perform that action at this time.
0 commit comments