Avatar Rail
- Web Components
- Flutter
Demo
zeta-web v0.6.6
Web Components
Avatar rail is a container for multiple avatars.
Storybook
https://design.zebra.com/web/storybook/?path=/docs/components-avatar-rail--docs
Slots
Name | Description | Type |
---|---|---|
default | The avatars to be displayed in the rail. | zeta-avatar-rail[] |
Attributes
Name | Description | Type | Default |
---|---|---|---|
show-close | Shows the close icon on all avatars in the rail. This will be overridden by the individual avatar's show-close attribute.When clicked, an avatar-close event will be fired which can be listened to by adding a listener for the avatar-close event on the rail. | boolean | false |
size | The size of the avatars in the rail. This will be overridden by the individual avatar's size attribute. | 'xxxs' | 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | 'xxxl' | undefined | undefined |
Demo
A stateless widget that represents an avatar rail in the Zeta application.
Widgetbook
Inheritance
Object
> DiagnosticableTree
> Widget
> StatelessWidget
Constructors
const
ZetaAvatarRail.new({Key? key, ZetaAvatarSize? size, required List<ZetaAvatar> avatars, TextStyle? labelTextStyle, int labelMaxLines = 1, void onTap(Key)?, double? gap})
Properties
Name | Description | Type | Features |
---|---|---|---|
avatars | A list of ZetaAvatar objects representing the avatars to be displayed. | List<ZetaAvatar> | final |
gap | The gap between the avatars. | double? | final |
hashCode | The hash code for this object. | int | no setter inherited |
key | Controls how one widget replaces another widget in the tree. | Key? | final inherited |
labelMaxLines | The maximum number of lines to be displayed in the label of the ZetaAvatars. | int | final |
labelTextStyle | The text style to be applied to the label of the ZetaAvatars. | TextStyle? | final |
onTap | A callback function to be executed when an ZetaAvatar is tapped. | void Function(Key)? | final |
runtimeType | A representation of the runtime type of the object. | Type | no setter inherited |
size | The size of the ZetaAvatars | ZetaAvatarSize? | final |
Methods
Name | Description | Type | Features |
---|---|---|---|
build(BuildContext context) | Describes the part of the user interface represented by this widget. | Widget | override |
createElement() | Creates a StatelessElement to manage this widget's location in the tree. | StatelessElement | inherited |
debugDescribeChildren() | Returns a list of DiagnosticsNode objects describing this node's children. | List<DiagnosticsNode> | inherited |
debugFillProperties(DiagnosticPropertiesBuilder properties) | Add additional properties associated with the node. | void | override |
noSuchMethod(Invocation invocation) | Invoked when a nonexistent method or property is accessed. | dynamic | inherited |
paddingAll(double space) | Available on Widget, provided by the SpacingWidget extension | Widget | undefined |
paddingBottom(double space) | Available on Widget, provided by the SpacingWidget extension | Widget | undefined |
paddingEnd(double space) | Available on Widget, provided by the SpacingWidget extension | Widget | undefined |
paddingHorizontal(double space) | Available on Widget, provided by the SpacingWidget extension | Widget | undefined |
paddingStart(double space) | Available on Widget, provided by the SpacingWidget extension | Widget | undefined |
paddingTop(double space) | Available on Widget, provided by the SpacingWidget extension | Widget | undefined |
paddingVertical(double space) | Available on Widget, provided by the SpacingWidget extension | Widget | undefined |
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) | Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep. | DiagnosticsNode | inherited |
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) | A string representation of this object. | String | inherited |
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) | Returns a string representation of this node and its descendants. | String | inherited |
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) | Returns a one-line detailed description of the object. | String | inherited |
toStringShort() | A short, textual description of this widget. | String | inherited |
Figma