HeaderList constructor
const
HeaderList(
- List<
ListItemModel> listItems, { - Key? key,
- String? imageUrl,
- Color? imageBlendColor,
- BlendMode? imageBlendMode,
- BackgroundGradientType? headerGradientType,
- EdgeInsetsGeometry? headerPadding,
- EdgeInsetsGeometry? avatarPadding,
- SimpleClipPath? imageClipPath,
- int headerFlex = 1,
- AlignmentGeometry headerAlignment = AlignmentDirectional.bottomCenter,
- int itemsFlex = 2,
- EdgeInsetsGeometry? listPadding,
- ThemeGroupType cardType = ThemeGroupType.MOM,
- ElevationLevel cardElevationLevel = ElevationLevel.FLAT,
- ThemeGroupType leadingIconType = ThemeGroupType.MOM,
- Emphasis leadingEmphasis = Emphasis.NONE,
- ThemeGroupType titleType = ThemeGroupType.MOM,
- Emphasis titleEmphasis = Emphasis.NONE,
- ThemeGroupType subtitleType = ThemeGroupType.MOM,
- Emphasis subtitleEmphasis = Emphasis.NONE,
- ThemeGroupType trailingIconType = ThemeGroupType.MOM,
- Emphasis trailingEmphasis = Emphasis.NONE,
- bool isHeaderSticky = true,
- bool isAvatarEnabled = true,
- double? heightBetween = 20.0,
- String avatarTitle = "First Last Name",
- ThemeGroupType avatarTitleType = ThemeGroupType.POM,
- Emphasis avatarTitleEmphasis = Emphasis.HIGH,
- String avatarSubtitle = "Tag Line",
- ThemeGroupType avatarSubtitleType = ThemeGroupType.MOM,
- Emphasis avatarSubtitleEmphasis = Emphasis.NONE,
- String avatarImageUrl = "assets/female.png",
- double avatarImageBorderWidth = 4.0,
- double avatarImageRadius = 70.0,
- VoidCallback? avatarClickedCallback,
- bool usePolygonAvatar = false,
Implementation
const HeaderList(
this.listItems,
{
super.key,
this.imageUrl,
this.imageBlendColor,
this.imageBlendMode,
this.headerGradientType,
this.headerPadding,
this.avatarPadding,
this.imageClipPath,
this.headerFlex = 1,
this.headerAlignment = AlignmentDirectional.bottomCenter,
this.itemsFlex = 2,
this.listPadding,
this.cardType = ThemeGroupType.MOM,
this.cardElevationLevel = ElevationLevel.FLAT,
this.leadingIconType = ThemeGroupType.MOM,
this.leadingEmphasis = Emphasis.NONE,
this.titleType = ThemeGroupType.MOM,
this.titleEmphasis = Emphasis.NONE,
this.subtitleType = ThemeGroupType.MOM,
this.subtitleEmphasis = Emphasis.NONE,
this.trailingIconType = ThemeGroupType.MOM,
this.trailingEmphasis = Emphasis.NONE,
this.isHeaderSticky = true,
this.isAvatarEnabled = true,
this.heightBetween = 20.0,
this.avatarTitle = "First Last Name",
this.avatarTitleType = ThemeGroupType.POM,
this.avatarTitleEmphasis = Emphasis.HIGH,
this.avatarSubtitle = "Tag Line",
this.avatarSubtitleType = ThemeGroupType.MOM,
this.avatarSubtitleEmphasis = Emphasis.NONE,
this.avatarImageUrl = "assets/female.png",
this.avatarImageBorderWidth = 4.0,
this.avatarImageRadius = 70.0,
this.avatarClickedCallback,
this.usePolygonAvatar = false
}
);