MiuixWindowSpinnerPreference.entry constructor

const MiuixWindowSpinnerPreference.entry({
  1. Key? key,
  2. required MiuixDropdownEntry? entry,
  3. required String title,
  4. String? dialogButtonString,
  5. MiuixBasicComponentColors? titleColor,
  6. String? summary,
  7. MiuixBasicComponentColors? summaryColor,
  8. MiuixDropdownColors? spinnerColors,
  9. Widget? startAction,
  10. Widget? bottomAction,
  11. EdgeInsetsGeometry insideMargin = MiuixBasicComponentDefaults.insideMargin,
  12. double? maxHeight,
  13. bool enabled = true,
  14. bool showValue = true,
  15. bool? collapseOnSelection = true,
  16. ValueChanged<bool>? onExpandedChange,
})

窗口级下拉偏好行(单分组)。对应 Kotlin WindowSpinnerPreference(entry)

Implementation

const MiuixWindowSpinnerPreference.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.collapseOnSelection = true,
  this.onExpandedChange,
})  : items = const <MiuixDropdownItem>[],
      selectedIndex = 0,
      entries = const <MiuixDropdownEntry>[],
      onSelectedIndexChange = null;