79456900

Date: 2025-02-21 09:39:48
Score: 2
Natty:
Report link

You don't need the keyed subtree, you can just add a UniqueKey to the Column you return in your builder. A key will identify each element in your listview so when you're rearranging them, they're correctly identified, so you have to add the key at the topmost widget in the subtree, in this case for each view card, the topmost element would be the Column, so just give it a UniqueKey(), that should sort it.

If you wanna understand it more, you can check this video

Reasons:
  • Blacklisted phrase (1): check this video
  • Blacklisted phrase (1): this video
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: public static void Main