mirror of
https://github.com/wgh136/pixes.git
synced 2025-09-27 12:57:24 +00:00
fix ui; update windows build
This commit is contained in:
@@ -56,7 +56,7 @@ class _DownloadedPageState extends State<DownloadedPage> {
|
||||
});
|
||||
},
|
||||
),
|
||||
),
|
||||
),
|
||||
Expanded(
|
||||
child: buildBody(),
|
||||
),
|
||||
@@ -77,8 +77,9 @@ class _DownloadedPageState extends State<DownloadedPage> {
|
||||
child: GestureDetector(
|
||||
behavior: HitTestBehavior.opaque,
|
||||
onTap: () {
|
||||
context.to(() => _DownloadedIllustViewPage(
|
||||
DownloadManager().getImagePaths(illusts[index].illustId)));
|
||||
App.rootNavigatorKey.currentContext?.to(() =>
|
||||
_DownloadedIllustViewPage(DownloadManager()
|
||||
.getImagePaths(illusts[index].illustId)));
|
||||
},
|
||||
child: Row(
|
||||
children: [
|
||||
|
@@ -1192,7 +1192,7 @@ class __BlockingPageState extends State<_BlockingPage> {
|
||||
strokeWidth: 1.6,
|
||||
).fixWidth(18).fixHeight(18).toAlign(Alignment.center)
|
||||
: Text("Submit".tl),
|
||||
).fixWidth(96).fixHeight(28),
|
||||
).fixWidth(96).fixHeight(32),
|
||||
).toAlign(Alignment.center).paddingTop(16);
|
||||
}
|
||||
}
|
||||
|
@@ -33,11 +33,12 @@ class _NovelReadingPageState extends LoadingState<NovelReadingPage, String> {
|
||||
if (!isShowingSettings) {
|
||||
_NovelReadingSettings.show(context, () {
|
||||
setState(() {});
|
||||
}).then((value) {
|
||||
isShowingSettings = false;
|
||||
});
|
||||
isShowingSettings = true;
|
||||
} else {
|
||||
Navigator.of(context).pop();
|
||||
isShowingSettings = false;
|
||||
}
|
||||
});
|
||||
Future.delayed(const Duration(milliseconds: 200), () {
|
||||
@@ -136,8 +137,8 @@ class _NovelReadingSettings extends StatefulWidget {
|
||||
|
||||
final void Function() callback;
|
||||
|
||||
static void show(BuildContext context, void Function() callback) {
|
||||
Navigator.of(context).push(SideBarRoute(_NovelReadingSettings(callback)));
|
||||
static Future show(BuildContext context, void Function() callback) {
|
||||
return Navigator.of(context).push(SideBarRoute(_NovelReadingSettings(callback)));
|
||||
}
|
||||
|
||||
@override
|
||||
|
Reference in New Issue
Block a user