flutter_multiselect 0.5.0

Flutter Android iOS web

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

Android and iOS screenshot- screenshot

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');
  }
),
16
likes
90
pub points
91%
popularity

Publisher

hiddencaliber.com

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_multiselect