transfer_list 0.0.2 copy "transfer_list: ^0.0.2" to clipboard
transfer_list: ^0.0.2 copied to clipboard

A transfer list enables the user to move one or more list items to and fro.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:transfer_list/transfer_list.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      title: 'Example',
      home: TransferListExample(),
    );
  }
}

class TransferListExample extends StatelessWidget {
  const TransferListExample({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: SafeArea(
        child: Padding(
          padding: const EdgeInsets.all(30),
          child: TransferList(
            leftList: const ['Dog', 'Cat', 'Mouse', 'Rabbit', 'Sheep'],
            rightList: const ['Lion', 'Tiger', 'Cheetah', 'Wolf', 'Fox'],
            onChange: (leftList, rightList) {
              // your code
            },
            checkboxFillColor: Colors.amber,
            tileSplashColor: Colors.amber,
            listBackgroundColor: Colors.grey.shade200,
            textStyle: const TextStyle(color: Colors.black87),
          ),
        ),
      ),
    );
  }
}
10
likes
150
pub points
0%
popularity

Publisher

verified publishermakecv.in

A transfer list enables the user to move one or more list items to and fro.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on transfer_list