Menu

Three bugs a Flutter Kanban board only shows once you drag
📰

Three bugs a Flutter Kanban board only shows once you drag

DEV Community: dart·Stephen Color·about 8 hours ago
#Y68fO1DF
#devtodart#devto#dev#card#lane
Long article (2303 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.