AdvancedAvatar constructor

const AdvancedAvatar({
  1. Key? key,
  2. String? name,
  3. double size = _defaultAvatarSize,
  4. ImageProvider<Object>? image,
  5. EdgeInsetsGeometry? margin,
  6. TextStyle? style,
  7. Color? statusColor,
  8. double statusSize = 12.0,
  9. Alignment statusAlignment = Alignment.bottomRight,
  10. BoxDecoration decoration = const BoxDecoration(shape: BoxShape.circle, color: Color.fromRGBO(0, 0, 0, 1)),
  11. BoxDecoration? foregroundDecoration,
  12. Widget? child,
  13. List<Widget> children = const <Widget>[],
  14. bool animated = false,
  15. Duration duration = const Duration(milliseconds: 300),
  16. 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);