AvatarTheme constructor

const AvatarTheme({
  1. double? size,
  2. double? borderRadius,
  3. Color? backgroundColor,
  4. AlignmentGeometry? badgeAlignment,
  5. double? badgeGap,
  6. TextStyle? textStyle,
})

Creates an AvatarTheme with the specified styling options.

All parameters are optional and will fall back to component defaults when not specified.

Parameters:

  • size (double?, optional): Default size for avatars.
  • borderRadius (double?, optional): Border radius for avatar corners.
  • backgroundColor (Color?, optional): Background color for initials display.
  • badgeAlignment (AlignmentGeometry?, optional): Badge positioning relative to avatar.
  • badgeGap (double?, optional): Spacing between avatar and badge.
  • textStyle (TextStyle?, optional): Text style for initials.

Implementation

const AvatarTheme({
  this.size,
  this.borderRadius,
  this.backgroundColor,
  this.badgeAlignment,
  this.badgeGap,
  this.textStyle,
});