MiuixWindowSpinnerPreference.entries constructor

const MiuixWindowSpinnerPreference.entries({
  1. Key? key,
  2. required List<MiuixDropdownEntry> entries,
  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,
  16. ValueChanged<bool>? onExpandedChange,
})

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

Implementation

const MiuixWindowSpinnerPreference.entries({
  super.key,
  required this.entries,
  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,
  this.onExpandedChange,
})  : items = const <MiuixDropdownItem>[],
      selectedIndex = 0,
      entry = null,
      onSelectedIndexChange = null;