MiuixWindowDropdownPreference.entries constructor
const
MiuixWindowDropdownPreference.entries({
- Key? key,
- required List<
MiuixDropdownEntry> entries, - 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,
- ValueChanged<
bool> ? onExpandedChange,
窗口级下拉偏好行(多分组)。对应 Kotlin WindowDropdownPreference(entries)。
Implementation
const MiuixWindowDropdownPreference.entries({
super.key,
required this.entries,
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,
this.onExpandedChange,
}) : items = const <String>[],
selectedIndex = 0,
entry = null,
onSelectedIndexChange = null;