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,7 +85,12 @@ class _ReaderImagesState extends State<_ReaderImages> {
child: CircularProgressIndicator(), child: CircularProgressIndicator(),
); );
} else if (error != null) { } else if (error != null) {
return NetworkError( return GestureDetector(
onTap: () {
context.readerScaffold.openOrClose();
},
child: SizedBox.expand(
child: NetworkError(
message: error!, message: error!,
retry: () { retry: () {
setState(() { setState(() {
@@ -93,6 +98,8 @@ class _ReaderImagesState extends State<_ReaderImages> {
error = null; error = null;
}); });
}, },
),
),
); );
} else { } else {
if (reader.mode.isGallery) { if (reader.mode.isGallery) {