mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
fix brief mode
This commit is contained in:
@@ -84,10 +84,14 @@ class SliverGridDelegateWithComics extends SliverGridDelegate {
|
|||||||
SliverGridLayout getLayout(SliverConstraints constraints) {
|
SliverGridLayout getLayout(SliverConstraints constraints) {
|
||||||
if (appdata.settings['comicDisplayMode'] == 'brief' || useBriefMode) {
|
if (appdata.settings['comicDisplayMode'] == 'brief' || useBriefMode) {
|
||||||
return getBriefModeLayout(
|
return getBriefModeLayout(
|
||||||
constraints, scale ?? appdata.settings['comicTileScale']);
|
constraints,
|
||||||
|
scale ?? (appdata.settings['comicTileScale'] as num).toDouble(),
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
return getDetailedModeLayout(constraints,
|
return getDetailedModeLayout(
|
||||||
scale ?? (appdata.settings['comicTileScale'] as num).toDouble());
|
constraints,
|
||||||
|
scale ?? (appdata.settings['comicTileScale'] as num).toDouble(),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user