multi_dropdown 1.0.7 multi_dropdown: ^1.0.7 copied to clipboard
A Flutter widget that allows the user to select one or more options from a list, and displays the selected options as chips. The use can also fetch options from a remote source.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add multi_dropdown
With Flutter:
$ flutter pub add multi_dropdown
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
multi_dropdown: ^1.0.7
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:multi_dropdown/enum/app_enums.dart';
import 'package:multi_dropdown/models/chip_config.dart';
import 'package:multi_dropdown/models/network_config.dart';
import 'package:multi_dropdown/models/value_item.dart';
import 'package:multi_dropdown/multiselect_dropdown.dart';
import 'package:multi_dropdown/widgets/hint_text.dart';
import 'package:multi_dropdown/widgets/selection_chip.dart';
import 'package:multi_dropdown/widgets/single_selected_item.dart';