CBasic<T extends Conjured> constructor
const
CBasic<T extends Conjured> ({
- Key? key,
- required T model,
- Widget? leading,
- Widget? title,
- Widget? subtitle,
- Widget? content,
- Widget? trailing,
- AlignmentGeometry? leadingAlignment,
- AlignmentGeometry? trailingAlignment,
- AlignmentGeometry? titleAlignment,
- AlignmentGeometry? subtitleAlignment,
- AlignmentGeometry? contentAlignment,
- double? contentSpacing,
- double? titleSpacing,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
- EdgeInsetsGeometry? padding,
Creates a CBasic widget for displaying a Conjured model.
The model
parameter is required and must implement Conjured.
Other parameters allow customizing the layout and appearance of the component.
If title
is null and model
implements ConjuredTitle, a CTitle widget
will be used to display the title.
If subtitle
is null and model
implements ConjuredSubtitle, a CSubtitle widget
will be used to display the subtitle.
Implementation
const CBasic({
super.key,
required this.model,
this.leading,
this.title,
this.subtitle,
this.content,
this.trailing,
this.leadingAlignment,
this.trailingAlignment,
this.titleAlignment,
this.subtitleAlignment,
this.contentAlignment,
this.contentSpacing, // 16
this.titleSpacing, //4
this.mainAxisAlignment = MainAxisAlignment.center,
this.padding,
});