mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-08-05 02:28:36 +02:00
perf(ui): scope scan rebuilds, aspect-bound MediaQuery, lazy duplicate list
This commit is contained in:
@@ -205,8 +205,13 @@ class _DuplicateReviewSheetState extends ConsumerState<DuplicateReviewSheet> {
|
||||
),
|
||||
);
|
||||
}
|
||||
// shrinkWrap keeps a small sheet compact but builds every
|
||||
// group eagerly; past a screenful, switch to a lazy
|
||||
// full-height list so a large duplicate set can't jank the
|
||||
// opening frame.
|
||||
final compact = groups.length <= 12;
|
||||
return ListView.builder(
|
||||
shrinkWrap: true,
|
||||
shrinkWrap: compact,
|
||||
itemCount: groups.length,
|
||||
itemBuilder: (context, index) =>
|
||||
_buildGroup(context, colorScheme, groups[index]),
|
||||
|
||||
Reference in New Issue
Block a user