op white list

This commit is contained in:
niuhuan 2022-01-05 16:29:22 +08:00
parent 79a8b7cc2d
commit 83a49cd2e3
2 changed files with 19 additions and 13 deletions

View File

@ -61,19 +61,24 @@ class _ComicListState extends State<ComicList> {
physics: const AlwaysScrollableScrollPhysics(), physics: const AlwaysScrollableScrollPhysics(),
children: [ children: [
...widget.comicList.map((e) { ...widget.comicList.map((e) {
var shadow = e.categories.map( late bool shadow;
(c) { X:
switch (currentShadowCategoriesMode()) { switch (currentShadowCategoriesMode()) {
case ShadowCategoriesMode.BLACK_LIST: case ShadowCategoriesMode.BLACK_LIST:
if (shadowCategories.contains(c)) return true; shadow = e.categories
break; .map((c) => shadowCategories.contains(c))
case ShadowCategoriesMode.WHITE_LIST: .reduce((value, element) => value || element);
if (!shadowCategories.contains(c)) return true; break;
break; case ShadowCategoriesMode.WHITE_LIST:
for (var c in e.categories) {
if (shadowCategories.contains(c)) {
shadow = false;
break X;
}
} }
return false; shadow = true;
}, break;
).reduce((value, element) => value || element); }
if (shadow) { if (shadow) {
return InkWell( return InkWell(
onTap: () {}, onTap: () {},

View File

@ -1533,7 +1533,8 @@ class _GalleryReaderState extends _ImageReaderContentState {
} }
Widget _buildNextEpController() { Widget _buildNextEpController() {
if (_current < widget.struct.images.length - 1) return Container(); if (super._fullscreenController() ||
_current < widget.struct.images.length - 1) return Container();
return Align( return Align(
alignment: Alignment.bottomRight, alignment: Alignment.bottomRight,
child: Material( child: Material(