Skip to content
On this page

Select

A control for choosing one or more options.

Select in FluttyUISelect in FluttyUI dark theme

Import

import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;

API Reference

The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.

Select

const Select({
  super.key,
  this.size,
  required this.options,
  this.onChanged,
  this.value,
  this.multiple = false,
  this.values = const {},
  this.onValuesChanged,
  String? placeholder,
  this.backgroundColor,
  this.foregroundColor,
  this.placeholderColor,
  this.borderColor,
  this.focusColor,
  this.selectedColor,
  this.borderRadius,
  this.menuBorderRadius,
  this.padding,
  this.optionPadding,
  this.menuPadding,
  this.fontSize,
  this.optionFontSize,
  this.maxMenuHeight = 280,
  this.enabled = true,
  this.width,
  this.height,
});
ParameterTypeRequiredDefault
keyKey?Nonull
sizeComponentSize?Nonull
optionsList<SelectOption<T>>Yes—
onChangedValueChanged<T>?Nonull
valueT?Nonull
multipleboolNofalse
valuesSet<T>Noconst {}
onValuesChangedValueChanged<Set<T>>?Nonull
placeholderString?Nonull
backgroundColorColor?Nonull
foregroundColorColor?Nonull
placeholderColorColor?Nonull
borderColorColor?Nonull
focusColorColor?Nonull
selectedColorColor?Nonull
borderRadiusdouble?Nonull
menuBorderRadiusdouble?Nonull
paddingEdgeInsetsGeometry?Nonull
optionPaddingEdgeInsetsGeometry?Nonull
menuPaddingEdgeInsetsGeometry?Nonull
fontSizedouble?Nonull
optionFontSizedouble?Nonull
maxMenuHeightdoubleNo280
enabledboolNotrue
widthdouble?Nonull
heightdouble?Nonull

Application Setup

Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.

Source

lib/src/widgets/forms/select/select.dart

This reference is generated from the Select declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

DartFlutter

Get started with FluttyUI