flutter_material_pickers library
Package for building card based settings forms
Enums
Constants
- kDialogActionBarHeight → const double
- kDialogMargin → const double
- kPickerHeaderLandscapeWidth → const double
- kPickerHeaderPortraitHeight → const double
Functions
-
showMaterialCheckboxPicker(
{required BuildContext context, String? title, required List< String> items, List<String> ? values, List<String> ? selectedValues, Color? headerColor, Color? headerTextColor, Color? backgroundColor, Color? buttonTextColor, String? confirmText, String? cancelText, double? maxLongSide, double? maxShortSide, ValueChanged<List< ? onChanged, VoidCallback? onConfirmed, VoidCallback? onCancelled}) → voidString> > - Allows selection of many values from a checkbox list.
-
showMaterialColorPicker(
{required BuildContext context, String title = "Pick a color", required Color selectedColor, Color? headerColor, Color? headerTextColor, Color? backgroundColor, Color? buttonTextColor, String? confirmText, String? cancelText, double? maxLongSide, double? maxShortSide, ValueChanged< Color> ? onChanged, VoidCallback? onConfirmed, VoidCallback? onCancelled}) → void - Allows RGB selection of a color.
-
showMaterialDatePicker(
{required BuildContext context, String? title, required DateTime firstDate, required DateTime lastDate, required DateTime selectedDate, Color? headerColor, Color? headerTextColor, Color? backgroundColor, Color? buttonTextColor, String? confirmText, String? cancelText, double? maxLongSide, double? maxShortSide, ValueChanged< DateTime> ? onChanged, VoidCallback? onConfirmed, VoidCallback? onCancelled}) → void - Allows selection of a date.
-
showMaterialFilePicker(
{BuildContext? context, FileType fileType = FileType.any, List< String> ? allowedExtensions, ValueChanged<PlatformFile> ? onChanged}) → Future<void> - Allows selection of a file.
-
showMaterialNumberPicker(
{required BuildContext context, String? title, required int minNumber, required int maxNumber, int? selectedNumber, int step = 1, Color? headerColor, Color? headerTextColor, Color? backgroundColor, Color? buttonTextColor, String? confirmText, String? cancelText, double? maxLongSide, double? maxShortSide, ValueChanged< int> ? onChanged, VoidCallback? onConfirmed, VoidCallback? onCancelled}) → void - Allows selection of a number via a slot machine carousel
-
showMaterialPalettePicker(
{required BuildContext context, String title = "Pick a color", required Color selectedColor, Color? headerColor, Color? headerTextColor, Color? backgroundColor, Color? buttonTextColor, String? confirmText, String? cancelText, double? maxLongSide, double? maxShortSide, ValueChanged< Color> ? onChanged, VoidCallback? onConfirmed, VoidCallback? onCancelled}) → void - Allows Material palette selection of a color
-
showMaterialRadioPicker(
{required BuildContext context, String? title, required List< String> items, List<String> ? values, String? selectedValue, Color? headerColor, Color? headerTextColor, Color? backgroundColor, Color? buttonTextColor, String? confirmText, String? cancelText, double? maxLongSide, double? maxShortSide, ValueChanged<String> ? onChanged, VoidCallback? onConfirmed, VoidCallback? onCancelled}) → void - Allows selection of a single from a radio list
-
showMaterialResponsiveDialog(
{required BuildContext context, String? title, Widget? child, Color? headerColor, Color? headerTextColor, Color? backgroundColor, Color? buttonTextColor, String? confirmText, String? cancelText, double? maxLongSide, double? maxShortSide, bool hideButtons = false, VoidCallback? onConfirmed, VoidCallback? onCancelled}) → void - Extends Dialog by making it responsive to screen orientation changes
-
showMaterialScrollPicker(
{required BuildContext context, String? title, required List< String> items, List<String> ? values, String? selectedValue, Color? headerColor, Color? headerTextColor, Color? backgroundColor, Color? buttonTextColor, String? confirmText, String? cancelText, double? maxLongSide, double? maxShortSide, bool showDivider = true, ValueChanged<String> ? onChanged, VoidCallback? onConfirmed, VoidCallback? onCancelled}) → void - Allows selection of a string via a slot machine carousel
-
showMaterialSelectionPicker(
{required BuildContext context, String? title, required List< String> items, List<String> ? values, required String selectedValue, List<Icon> ? icons, Color? headerColor, Color? headerTextColor, Color? backgroundColor, Color? buttonTextColor, String? confirmText, String? cancelText, double? maxLongSide, double? maxShortSide, ValueChanged<String> ? onChanged, VoidCallback? onConfirmed, VoidCallback? onCancelled}) → void - Allows selection of a single value via an icon label list
-
showMaterialSwatchPicker(
{required BuildContext context, String title = "Pick a color", required Color selectedColor, Color? headerColor, Color? headerTextColor, Color? backgroundColor, Color? buttonTextColor, String? confirmText, String? cancelText, double? maxLongSide, double? maxShortSide, ValueChanged< Color> ? onChanged, VoidCallback? onConfirmed, VoidCallback? onCancelled}) → void - Allows selection of a color from swatches
-
showMaterialTimePicker(
{required BuildContext context, String? title, required TimeOfDay selectedTime, String? confirmText, String? cancelText, ValueChanged< TimeOfDay> ? onChanged, VoidCallback? onConfirmed, VoidCallback? onCancelled}) → void - Allows selection of a time