mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
Fix the issue where the toolbar can not be open when chapter data loading failed. Close #415
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user