AdvancedAvatar constructor
const
AdvancedAvatar({
- Key? key,
- String? name,
- double size = _defaultAvatarSize,
- ImageProvider<
Object> ? image, - EdgeInsetsGeometry? margin,
- TextStyle? style,
- Color? statusColor,
- double statusSize = 12.0,
- Alignment statusAlignment = Alignment.bottomRight,
- BoxDecoration decoration = const BoxDecoration(shape: BoxShape.circle, color: Color.fromRGBO(0, 0, 0, 1)),
- BoxDecoration? foregroundDecoration,
- Widget? child,
- List<
Widget> children = const <Widget>[], - bool animated = false,
- Duration duration = const Duration(milliseconds: 300),
- bool autoTextSize = false,
Implementation
const AdvancedAvatar({
Key? key,
this.name,
this.size = _defaultAvatarSize,
this.image,
this.margin,
this.style,
this.statusColor,
this.statusSize = 12.0,
this.statusAlignment = Alignment.bottomRight,
this.decoration = const BoxDecoration(
shape: BoxShape.circle,
color: Color.fromRGBO(0, 0, 0, 1),
),
this.foregroundDecoration,
this.child,
this.children = const <Widget>[],
this.animated = false,
this.duration = const Duration(milliseconds: 300),
this.autoTextSize = false,
}) : super(key: key);