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) {
|
||||
if (appdata.settings['comicDisplayMode'] == 'brief' || useBriefMode) {
|
||||
return getBriefModeLayout(
|
||||
constraints, scale ?? appdata.settings['comicTileScale']);
|
||||
constraints,
|
||||
scale ?? (appdata.settings['comicTileScale'] as num).toDouble(),
|
||||
);
|
||||
} else {
|
||||
return getDetailedModeLayout(constraints,
|
||||
scale ?? (appdata.settings['comicTileScale'] as num).toDouble());
|
||||
return getDetailedModeLayout(
|
||||
constraints,
|
||||
scale ?? (appdata.settings['comicTileScale'] as num).toDouble(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user