select_dialog 1.0.0+2 select_dialog: ^1.0.0+2 copied to clipboard
Package designed to select an item from a list, with the option to filter and even search the items online.
select_dialog Package #
Package designed to select an item from a list, with the option to filter and even search the items online.
pubspec.yaml #
select_dialog: <last version>
import #
import 'package:select_dialog/select_dialog.dart';
simple example #
String ex1 = "No value selected";
SelectDialog.showModal<String>(
context,
label: "Simple Example",
selectedValue: ex1,
items: List.generate(50, (index) => "Item $index"),
onChange: (String selected) {
setState(() {
ex1 = selected;
});
},
);
Getting Started #
This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.