You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
Currently in Kan ban board in BoardListsData when i add widget for header and footer as per my requirement,but when i run the code still it takes by default widget which is define in dart file of BoardListsData.
Hello,
Currently in Kan ban board
in
BoardListsData when i add widget for header and footer as per my requirement,but when i run the code still it takes by default widget which is define in dart file of BoardListsData.here example code:
KanbanBoard( List.generate( 5, (index) => BoardListsData( title: index == 0 ? "TODO" : index == 1 ? "In Progess" : index == 2 ? "QA In Progress" : index == 3 ? "Back Logs" : "Done", header: Text(index == 0 ? "TODO" : index == 1 ? "In Progess" : index == 2 ? "QA In Progress" : index == 3 ? "Back Logs" : "Done"), footer: SizedBox.fromSize(), backgroundColor: Colors.white, headerBackgroundColor: Colors.white, items: index == 0 ? logic.todoList .map( (item) => TaskCard( item: Text( item, style: textSmallMediumStyle.copyWith( color: Theme.of(context).primaryColorDark, ), ), ), ) .toList() : index == 1 ? logic.inProgressList .map( (item) => TaskCard( item: Text( item, style: textSmallMediumStyle.copyWith( color: Theme.of(context) .primaryColorDark, ), ), ), ) .toList() : logic.completedList .map( (item) => TaskCard( item: Text( item, style: textSmallMediumStyle.copyWith( color: Theme.of(context) .primaryColorDark, ), ), ), ) .toList(), ), ), listDecoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.circular(16.0), ), onItemLongPress: (cardIndex, listIndex) { print("tap"); }, onItemReorder: (oldCardIndex, newCardIndex, oldListIndex, newListIndex) {}, onListLongPress: (listIndex) {}, onListReorder: (oldListIndex, newListIndex) {}, onItemTap: (cardIndex, listIndex) {}, onListTap: (listIndex) {}, onListRename: (oldName, newName) {}, backgroundColor: COLOR_BACKGROUND_DARK, textStyle: textBodyStyle.copyWith( color: Theme.of(context).primaryColor, fontSize: 18), );
The text was updated successfully, but these errors were encountered: