SingCellItem constructor

const SingCellItem({
  1. Key? key,
  2. Color? backgroundColor,
  3. double height = 56.0,
  4. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 16.0, vertical: 0.0),
  5. String assetPath = '',
  6. Size iconSize = const Size(28.0, 28.0),
  7. double gap = 12.0,
  8. String title = 'CellItem',
  9. TextStyle? titleTextStyle,
  10. BoxDecoration? decoration,
  11. GestureTapCallback? onTap,
  12. Widget? separator,
  13. bool showNext = false,
  14. Widget? nextIcon,
  15. FocusNode? focusNode,
  16. TextEditingController? controller,
  17. TextStyle? subTitleTextStyle,
  18. String? package,
  19. String subTitleHint = '',
  20. TextStyle? subTitleHintTextStyle,
  21. EdgeInsets? subTitleContentPadding,
  22. bool readOnly = true,
  23. GestureTapCallback? onSubTap,
  24. bool showSub = true,
  25. Widget? customWidget,
})

Implementation

const SingCellItem({
  super.key,
  this.backgroundColor,
  this.height = 56.0,
  this.padding = const EdgeInsets.symmetric(horizontal: 16.0, vertical: 0.0),
  this.assetPath = '', // 如果为空这不显示图标
  this.iconSize = const Size(28.0, 28.0),
  this.gap = 12.0,
  this.title = 'CellItem',
  this.titleTextStyle,
  this.decoration,
  this.onTap,
  this.separator,
  this.showNext = false,
  this.nextIcon,
  this.focusNode,
  this.controller,
  this.subTitleTextStyle,
  this.package,
  this.subTitleHint = '',
  this.subTitleHintTextStyle,
  this.subTitleContentPadding,
  this.readOnly = true,
  this.onSubTap,
  this.showSub = true,
  this.customWidget,
});