list_picker library

Provides Widgets and Functions to select a value from a list.

To use add the following code:

import 'package:list_picker/list_picker.dart';

Classes

ListPickerDialog
A dialog that displays a list of items and lets the user select one.
ListPickerField
The ListPickerField is a TextField that opens a ListPickerDialog when tapped.

Functions

showPickerDialog({required BuildContext context, required String label, required List<String> items}) Future<String?>
Opens the ListPickerDialog and returns the selected value.