⌂
›
Reference
›
CircleAvatar
CircleAvatar
CircleAvatar control. Build it with the circle_avatar helper.
Example
circle_avatar(
content: text("CircleAvatar"),
color: :blue_600,
bgcolor: :surface_container_high,
expand: true,
on_animation_end: ->(event) {}
)
Properties
background_image_srcbgcolor— Background color.color— Foreground color.content— The single child control rendered inside this control.foreground_image_srcmax_radius— Max radius.min_radius— Min radius.radius
Plus the common layout and animation properties shared by most controls (expand, visible, disabled, opacity, width, height, align, tooltip, animate_*, …).
Events
on_animation_end— Fired when an animation completes.on_image_error— Fired when the image fails to load.on_size_change— Fired when the control's size changes.
Reference
- Family:
materials - Widget type:
circleavatar - Helper:
circle_avatar