AvatarSphereWidget constructor

const AvatarSphereWidget({
  1. Key? key,
  2. required List<String> avatarUrls,
  3. AvatarSphereImageBuilder? imageBuilder,
  4. AvatarSphereTapCallback? onAvatarTap,
  5. double radius = 140,
  6. double avatarSize = 56,
  7. double padding = 56,
  8. double autoRotateSpeed = 0.002,
  9. double dragSensitivity = 0.005,
  10. double inertiaFriction = 0.985,
  11. Color borderColor = Colors.white,
  12. double borderWidth = 2,
  13. Color backgroundColor = const Color(0xFFE0E0E0),
  14. Map<String, String>? imageHeaders = const {'User-Agent' : 'Mozilla/5.0'},
  15. ImageErrorWidgetBuilder? errorBuilder,
})

Implementation

const AvatarSphereWidget({
  super.key,
  required this.avatarUrls,
  this.imageBuilder,
  this.onAvatarTap,
  this.radius = 140,
  this.avatarSize = 56,
  this.padding = 56,
  this.autoRotateSpeed = 0.002,
  this.dragSensitivity = 0.005,
  this.inertiaFriction = 0.985,
  this.borderColor = Colors.white,
  this.borderWidth = 2,
  this.backgroundColor = const Color(0xFFE0E0E0),
  this.imageHeaders = const {'User-Agent': 'Mozilla/5.0'},
  this.errorBuilder,
});