dropdown_flutter 1.0.1 dropdown_flutter: ^1.0.1 copied to clipboard
A Flutter package designed to enhance your app with customizable dropdowns, featuring list data search, network search, and multi-selection.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add dropdown_flutter
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
dropdown_flutter: ^1.0.1
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:dropdown_flutter/custom_dropdown.dart';
import 'package:dropdown_flutter/models/controllers.dart';
import 'package:dropdown_flutter/models/custom_dropdown_decoration.dart';
import 'package:dropdown_flutter/models/custom_dropdown_list_filter.dart';
import 'package:dropdown_flutter/models/disabled_decoration.dart';
import 'package:dropdown_flutter/models/list_item_decoration.dart';
import 'package:dropdown_flutter/models/search_field_decoration.dart';
import 'package:dropdown_flutter/utils/signatures.dart';
import 'package:dropdown_flutter/widgets/animated_section.dart';
import 'package:dropdown_flutter/widgets/dropdown_field.dart';
import 'package:dropdown_flutter/widgets/dropdown_overlay/dropdown_overlay.dart';
import 'package:dropdown_flutter/widgets/dropdown_overlay/widgets/items_list.dart';
import 'package:dropdown_flutter/widgets/dropdown_overlay/widgets/search_field.dart';
import 'package:dropdown_flutter/widgets/overlay_builder.dart';