MiuixWindowDropdownPreference constructor
const
MiuixWindowDropdownPreference({
- Key? key,
- required List<
String> items, - required int selectedIndex,
- required String title,
- MiuixBasicComponentColors? titleColor,
- String? summary,
- MiuixBasicComponentColors? summaryColor,
- MiuixDropdownColors? dropdownColors,
- Widget? startAction,
- Widget? bottomAction,
- EdgeInsetsGeometry insideMargin = MiuixBasicComponentDefaults.insideMargin,
- double? maxHeight,
- bool enabled = true,
- bool showValue = true,
- bool? collapseOnSelection = true,
- ValueChanged<
bool> ? onExpandedChange, - ValueChanged<
int> ? onSelectedIndexChange,
Implementation
const MiuixWindowDropdownPreference({
super.key,
required this.items,
required this.selectedIndex,
required this.title,
this.titleColor,
this.summary,
this.summaryColor,
this.dropdownColors,
this.startAction,
this.bottomAction,
this.insideMargin = MiuixBasicComponentDefaults.insideMargin,
this.maxHeight,
this.enabled = true,
this.showValue = true,
this.collapseOnSelection = true,
this.onExpandedChange,
this.onSelectedIndexChange,
}) : entry = null,
entries = const <MiuixDropdownEntry>[];