Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/ui/home/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,10 @@ class _HomeState extends State<Home> {
}

List<Widget> createList() {
final orderedCards = getOrderedCardsList(context.select((CardsDataProvider p) => p.cardOrder));
// Copy list so select() detects reorder: profile mutates _cardOrder in place (same ref).
final orderedCards = getOrderedCardsList(
context.select((CardsDataProvider p) => List<String>.from(p.cardOrder)),
);
final noticesCards = getNoticesCardsList(context.select((NoticesDataProvider p) => p.noticesModel));
return [...noticesCards, ...orderedCards];
}
Expand Down
Loading