fix ui; update windows build

This commit is contained in:
wgh19
2024-05-23 11:56:49 +08:00
parent 9505b78ae4
commit 187e5f9a09
6 changed files with 94 additions and 10 deletions

View File

@@ -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: [

View File

@@ -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);
}
}

View File

@@ -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