Fix the issue where the toolbar can not be open when chapter data loading failed. Close #415

This commit is contained in:
2025-07-13 20:21:27 +08:00
parent b9817ec030
commit ccb03343f4

View File

@@ -85,14 +85,21 @@ class _ReaderImagesState extends State<_ReaderImages> {
child: CircularProgressIndicator(), child: CircularProgressIndicator(),
); );
} else if (error != null) { } else if (error != null) {
return NetworkError( return GestureDetector(
message: error!, onTap: () {
retry: () { context.readerScaffold.openOrClose();
setState(() {
reader.isLoading = true;
error = null;
});
}, },
child: SizedBox.expand(
child: NetworkError(
message: error!,
retry: () {
setState(() {
reader.isLoading = true;
error = null;
});
},
),
),
); );
} else { } else {
if (reader.mode.isGallery) { if (reader.mode.isGallery) {