AnimatedProfileAvatar constructor

const AnimatedProfileAvatar({
  1. Key? key,
  2. required double size,
  3. required Color borderColor,
  4. double borderWidth = 2.0,
  5. String? profileImagePath,
  6. String? userName,
  7. String? status,
  8. String? userRole,
  9. dynamic onTap(
    1. BuildContext
    )?,
  10. VoidCallback? onLogout,
  11. Widget profileMenuBuilder(
    1. BuildContext
    )?,
  12. AvatarAnimationMode animationMode = AvatarAnimationMode.fadeIn,
  13. String? heroTag,
  14. bool isLoading = false,
  15. VoidCallback? onStatusTap,
  16. Widget customFallbackAvatar(
    1. BuildContext,
    2. String initial
    )?,
  17. void onImageError(
    1. Object error
    )?,
  18. required String profileMenuTitle,
  19. required String viewProfileLabel,
  20. required String logoutLabel,
  21. required String cancelLabel,
})

Implementation

const AnimatedProfileAvatar({
  super.key,
  required this.size,
  required this.borderColor,
  this.borderWidth = 2.0,
  this.profileImagePath,
  this.userName,
  this.status,
  this.userRole,
  this.onTap,
  this.onLogout,
  this.profileMenuBuilder,
  this.animationMode = AvatarAnimationMode.fadeIn,
  this.heroTag,
  this.isLoading = false,
  this.onStatusTap,
  this.customFallbackAvatar,
  this.onImageError,
  required this.profileMenuTitle,
  required this.viewProfileLabel,
  required this.logoutLabel,
  required this.cancelLabel,
});