I spent the last week building a Kanban board engine for Flutter — lanes, cards, drag to reorder, drag across lanes, batch moves, filters, undo. No packages, about 5,000 lines of Dart, 289 tests.
The layout was the easy part. Almost everything that bit me was about order : how a card's position is stored, what index a drop actually refers to, and what happens when the list the user sees is not the list the model has. Three of those bugs are worth writing down, because they are the kind you only find by dragging something on a real phone.
1. A card's position is a string, not an integer
The obvious model is position: int and renumber 0..n on every drop.…