Flutter Staggered Grid View Pin tiles

370 Views Asked by At

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.

pinned note example

1

There are 1 best solutions below

1
On

don't do it in just one staggeredGrid, make them 2 separated grids, once remove and add to different grids