A transfer list enables the user to move one or more list items to and fro.
Getting started
- Add the package in your flutter project.
- Import the package
import 'package:transfer_list/transfer_list.dart';.
Usage
TransferList(
leftList: const ['Dog', 'Cat', 'Mouse', 'Rabbit'],
rightList: const [],
onChange: (leftList, rightList) {
// your logic
},
listBackgroundColor: Colors.black12,
textStyle: const TextStyle(color: Colors.black),
),