op white list
This commit is contained in:
parent
79a8b7cc2d
commit
83a49cd2e3
|
@ -61,19 +61,24 @@ class _ComicListState extends State<ComicList> {
|
|||
physics: const AlwaysScrollableScrollPhysics(),
|
||||
children: [
|
||||
...widget.comicList.map((e) {
|
||||
var shadow = e.categories.map(
|
||||
(c) {
|
||||
switch (currentShadowCategoriesMode()) {
|
||||
case ShadowCategoriesMode.BLACK_LIST:
|
||||
if (shadowCategories.contains(c)) return true;
|
||||
break;
|
||||
case ShadowCategoriesMode.WHITE_LIST:
|
||||
if (!shadowCategories.contains(c)) return true;
|
||||
break;
|
||||
late bool shadow;
|
||||
X:
|
||||
switch (currentShadowCategoriesMode()) {
|
||||
case ShadowCategoriesMode.BLACK_LIST:
|
||||
shadow = e.categories
|
||||
.map((c) => shadowCategories.contains(c))
|
||||
.reduce((value, element) => value || element);
|
||||
break;
|
||||
case ShadowCategoriesMode.WHITE_LIST:
|
||||
for (var c in e.categories) {
|
||||
if (shadowCategories.contains(c)) {
|
||||
shadow = false;
|
||||
break X;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
},
|
||||
).reduce((value, element) => value || element);
|
||||
shadow = true;
|
||||
break;
|
||||
}
|
||||
if (shadow) {
|
||||
return InkWell(
|
||||
onTap: () {},
|
||||
|
|
|
@ -1533,7 +1533,8 @@ class _GalleryReaderState extends _ImageReaderContentState {
|
|||
}
|
||||
|
||||
Widget _buildNextEpController() {
|
||||
if (_current < widget.struct.images.length - 1) return Container();
|
||||
if (super._fullscreenController() ||
|
||||
_current < widget.struct.images.length - 1) return Container();
|
||||
return Align(
|
||||
alignment: Alignment.bottomRight,
|
||||
child: Material(
|
||||
|
|
Loading…
Reference in New Issue