Fluent2Avatar constructor
const
Fluent2Avatar({
- String? name,
- String? initials,
- ImageProvider<
Object> ? image, - double size = 32,
- Fluent2AvatarShape shape = Fluent2AvatarShape.circular,
- Fluent2AvatarColor color = Fluent2AvatarColor.neutral,
- Fluent2Presence? presence,
- bool selected = false,
- VoidCallback? onPressed,
- String? label,
- IconData? icon,
- FocusNode? focusNode,
- bool autofocus = false,
- Fluent2Style? style,
- Key? key,
An avatar of name: its picture, or its initials.
Implementation
const Fluent2Avatar({
this.name,
this.initials,
this.image,
this.size = 32,
this.shape = Fluent2AvatarShape.circular,
this.color = Fluent2AvatarColor.neutral,
this.presence,
this.selected = false,
this.onPressed,
this.label,
this.icon,
this.focusNode,
this.autofocus = false,
this.style,
super.key,
});