SingCellItem constructor
const
SingCellItem({
- Key? key,
- Color? backgroundColor,
- double height = 56.0,
- EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 16.0, vertical: 0.0),
- String assetPath = '',
- Size iconSize = const Size(28.0, 28.0),
- double gap = 12.0,
- String title = 'CellItem',
- TextStyle? titleTextStyle,
- BoxDecoration? decoration,
- GestureTapCallback? onTap,
- Widget? separator,
- bool showNext = false,
- Widget? nextIcon,
- FocusNode? focusNode,
- TextEditingController? controller,
- TextStyle? subTitleTextStyle,
- String? package,
- String subTitleHint = '',
- TextStyle? subTitleHintTextStyle,
- EdgeInsets? subTitleContentPadding,
- bool readOnly = true,
- GestureTapCallback? onSubTap,
- bool showSub = true,
- 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,
});