ApplicationHeaderButtonIcon class
A 48x48 action button for application headers supporting icons and user avatars.
Figma Specifications (Node 542:9072 - .ApplicationHeaderButtonIcon):
- Variants:
type=Default: 48x48 box with centered 24x24 icon glyph.type=Avatar: 48x48 box with centered 32x32 Avatar child.
- States:
state=Default: Backgroundtransparent.state=Hover: BackgroundbaseActive(#E5E7EB).state=Selected: BackgroundbaseActive(#E5E7EB).
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ApplicationHeaderButtonIcon
Constructors
-
ApplicationHeaderButtonIcon({Key? key, ApplicationHeaderButtonIconType type = ApplicationHeaderButtonIconType.defaultType, IconData? icon = Icons.face_outlined, Widget? iconWidget, Widget? avatar, ImageProvider<
Object> ? avatarImage, String? avatarImageUrl, String? avatarInitials, bool? isHovered, bool isSelected = false, BorderRadius? borderRadius, double size = 48.0, VoidCallback? onTap}) -
Creates an ApplicationHeaderButtonIcon instance.
const
-
ApplicationHeaderButtonIcon.avatar({Key? key, Widget? avatar, ImageProvider<
Object> ? avatarImage, String? avatarImageUrl, String? avatarInitials, bool? isHovered, bool isSelected = false, BorderRadius? borderRadius, double size = 48.0, VoidCallback? onTap}) -
Factory for an avatar-based header action button.
const
Properties
- avatar → Widget?
-
Custom Avatar widget override for ApplicationHeaderButtonIconType.avatar.
final
-
avatarImage
→ ImageProvider<
Object> ? -
Image provider for the embedded avatar.
final
- avatarImageUrl → String?
-
Image URL string for the embedded avatar.
final
- avatarInitials → String?
-
Initials string fallback for the embedded avatar.
final
- borderRadius → BorderRadius?
-
Corner radius of the button background.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → IconData?
-
Leading icon glyph data for ApplicationHeaderButtonIconType.defaultType.
final
- iconWidget → Widget?
-
Custom icon widget override.
final
- isHovered → bool?
-
Explicit hover state override.
final
- isSelected → bool
-
Whether the button is currently in the selected active state.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onTap → VoidCallback?
-
Callback executed when the button is tapped.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → double
-
Overall size (width & height) of the button container.
final
- type → ApplicationHeaderButtonIconType
-
Variant type of the button icon (icon or avatar).
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< ApplicationHeaderButtonIcon> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited