Flutter Sort Drag and Drop between multiple lists or columns. I use boardview flutter plugin.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | import 'package:boardview/board_item.dart'; import 'package:boardview/board_list.dart'; import 'package:boardview/boardview.dart'; @override Widget build(BuildContext context) { List<BoardList> boardList = new List<BoardList>(); List<BoardItem> boardItem = new List<BoardItem>(); boardItem.add(new BoardItem( boardList: new BoardListState(), item: boarditem(), test: '1', )); boardList.add(new BoardList( index: 1, items: boardItem, header: header() )); Widget header() { return Row( ... );} Widget boarditem() { return Card( ... );} return BoardView( lists: boardList, ); } |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.