MiuixOverlaySpinnerPreference.entry constructor
const
MiuixOverlaySpinnerPreference.entry({
- Key? key,
- required MiuixDropdownEntry? entry,
- required String title,
- String? dialogButtonString,
- MiuixBasicComponentColors? titleColor,
- String? summary,
- MiuixBasicComponentColors? summaryColor,
- MiuixDropdownColors? spinnerColors,
- Widget? startAction,
- Widget? bottomAction,
- EdgeInsetsGeometry insideMargin = MiuixBasicComponentDefaults.insideMargin,
- double? maxHeight,
- bool enabled = true,
- bool showValue = true,
- bool renderInRootScaffold = true,
- bool? collapseOnSelection = true,
- ValueChanged<
bool> ? onExpandedChange,
Scaffold 内下拉偏好行(单分组)。对应 Kotlin OverlaySpinnerPreference(entry)。
Implementation
const MiuixOverlaySpinnerPreference.entry({
super.key,
required this.entry,
required this.title,
this.dialogButtonString,
this.titleColor,
this.summary,
this.summaryColor,
this.spinnerColors,
this.startAction,
this.bottomAction,
this.insideMargin = MiuixBasicComponentDefaults.insideMargin,
this.maxHeight,
this.enabled = true,
this.showValue = true,
this.renderInRootScaffold = true,
this.collapseOnSelection = true,
this.onExpandedChange,
}) : items = const <MiuixDropdownItem>[],
selectedIndex = 0,
entries = const <MiuixDropdownEntry>[],
onSelectedIndexChange = null;