flutter_multiselect 0.4.0 copy "flutter_multiselect: ^0.4.0" to clipboard
flutter_multiselect: ^0.4.0 copied to clipboard

outdated

Flutter package for multi-select UI widget, that compatible to both iOS and Android and uses neutral design.

flutter_multiselect #

Flutter package for multi-select UI widget

pub package

Getting Started #

  • Add the package into pubspec.yaml
dependencies:
  flutter_multiselect: 0.0.1
  • Import in your code
import 'package:flutter_multiselect/flutter_multiselect.dart';

Why? #

By default, there is no UI control for multi-select in iOS and Android, and my widget can be used to bridge this gap.

Example #

child: MultiSelect(
  autovalidate: false,
  titleText: title,
  validator: (value) {
    if (value == null) {
      return 'Please select one or more option(s)';
    }
  },
  errorText: 'Please select one or more option(s)',
  dataSource: [
    {
      "display": "Australia",
      "value": 1,
    },
    {
      "display": "Canada",
      "value": 2,
    },
    {
      "display": "India",
      "value": 3,
    },
    {
      "display": "United States",
      "value": 4,
    }
  ],
  textField: 'display',
  valueField: 'value',
  filterable: true,
  required: true,
  value: null,
  onSaved: (value) {
    print('The value is $value');
  }
),
50
likes
0
pub points
91%
popularity

Publisher

verified publisherhiddencaliber.com

Flutter package for multi-select UI widget, that compatible to both iOS and Android and uses neutral design.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_multiselect