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