MiuixOverlaySpinnerPreference.entry constructor

const MiuixOverlaySpinnerPreference.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 renderInRootScaffold = true,
  16. bool? collapseOnSelection = true,
  17. 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;