AnimatedProfileAvatar constructor
const
AnimatedProfileAvatar({
- Key? key,
- required double size,
- required Color borderColor,
- double borderWidth = 2.0,
- String? profileImagePath,
- String? userName,
- String? status,
- String? userRole,
- dynamic onTap()?,
- VoidCallback? onLogout,
- Widget profileMenuBuilder()?,
- AvatarAnimationMode animationMode = AvatarAnimationMode.fadeIn,
- String? heroTag,
- bool isLoading = false,
- VoidCallback? onStatusTap,
- Widget customFallbackAvatar(
- BuildContext,
- String initial
- void onImageError(
- Object error
- required String profileMenuTitle,
- required String viewProfileLabel,
- required String logoutLabel,
- 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,
});