Babsky
Babsky

Reputation: 23

Flutter Staggered Grid View Pin tiles

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

Upvotes: -1

Views: 366

Answers (1)

Jim
Jim

Reputation: 7601

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

Upvotes: 0

Related Questions