Reputation: 23
I'm using a staggered grid (flutter staggered grid view package) to display notes. It all works fine but I can't find any information on pinning tiles, like 'google keep' notes. The notes are stored in a database (sqlite) and it's no problem to add a column (pinned), but how do I tell the staggered grid view widget to keep pinned notes at the top and preferably separate from the other notes? ideally I would like to add the "pinned" and "others" text as well.
Upvotes: -1
Views: 366
Reputation: 7601
don't do it in just one staggeredGrid, make them 2 separated grids, once remove and add to different grids
Upvotes: 0