Created
January 6, 2020 14:34
-
-
Save hydroweaver/572e7de6126d93b2bf55d326f2f41f9f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onReorder: (OldIndex, NewIndex){ | |
setState(() { | |
if(OldIndex < NewIndex){ | |
NewIndex -= 1; | |
} | |
var getReplacedWidget = items.removeAt(OldIndex); | |
items.insert(NewIndex, getReplacedWidget); | |
}); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment