warcraft_flutter_components library

Warcraft-themed Flutter UI components: 18 accessible, faction-aware widgets (buttons, inputs, tabs, cards, and more) built on a shared 9-slice image-frame primitive and design-token scale.

Classes

WarcraftAccordion
Warcraft-themed accordion with animated expand/collapse.
WarcraftAccordionItem
Model for a single accordion item.
WarcraftAssets
Asset path registry for Warcraft components.
WarcraftAvatar
Warcraft-styled avatar with faction frame and optional image.
WarcraftBadge
Warcraft-themed badge with frame and optional faction tint.
WarcraftBorderBox
Renders asset as a 9-slice (or, with a zero top/bottom inset, a horizontal 3-slice) frame around child.
WarcraftButton
Warcraft-themed button with frame variants and press animation.
WarcraftCard
Warcraft-themed card with framed background.
WarcraftCardContent
A WarcraftCardSection preset for a card's main content area.
WarcraftCardFooter
A WarcraftCardSection preset for a card's footer area.
WarcraftCardHeader
A WarcraftCardSection preset for a card's header area.
WarcraftCardSection
A padded section within a WarcraftCard, used to build WarcraftCardHeader, WarcraftCardContent, and WarcraftCardFooter.
WarcraftCheckbox
Warcraft-themed checkbox with faction skins.
WarcraftColors
Core color palette for Warcraft UI.
WarcraftCursor
Wraps child and paints a faction-tinted hero cursor that follows the mouse pointer, replacing the system cursor while hovering.
WarcraftDropdownMenu
Warcraft-themed dropdown menu wrapper.
WarcraftInput
Warcraft-themed single-line text input.
WarcraftLabel
Warcraft-styled label with optional required marker.
WarcraftMenuAction
Clickable menu action item.
WarcraftMenuCheckbox
Checkbox item for menus.
WarcraftMenuEntry
Base class for Warcraft dropdown menu entries.
WarcraftMenuLabel
Section label for menus.
WarcraftMenuRadio<T>
Radio item for menus.
WarcraftMenuSeparator
Divider item for menus.
WarcraftMenuSubmenu
Submenu item containing nested entries.
WarcraftPagination
Warcraft-themed pagination with ellipsis and navigation buttons.
WarcraftRadio<T>
Warcraft-styled radio control.
WarcraftRadioGroup<T>
Simple radio group layout for Warcraft radios.
WarcraftSkeleton
Warcraft-themed loading skeleton with shimmer.
WarcraftSpinner
Warcraft-themed loading spinner.
WarcraftTabs
Warcraft-themed tabs with faction styling.
WarcraftTextarea
Warcraft-themed multi-line text input.
WarcraftTheme
Typography helpers for Warcraft UI.
WarcraftThemeData
Theme values shared by all Warcraft components.
WarcraftToast
Warcraft-themed transient notification, shown via the static show API.
WarcraftToastController
Handle returned by WarcraftToast.show for dismissing a toast early.
WarcraftTokens
Shared layout/typography constants for Warcraft UI widgets.
WarcraftTooltip
Warcraft-styled tooltip with rarity colors.

Enums

WarcraftAccordionIcon
Icon variants for Warcraft accordion headers.
WarcraftAvatarSize
Size presets for Warcraft avatars.
WarcraftBadgeFaction
Faction tinting for badges.
WarcraftBadgeShape
Shape variants for badges.
WarcraftBadgeSize
Size presets for badges.
WarcraftBadgeVariant
Visual variants for Warcraft badges.
WarcraftButtonSize
Size presets for Warcraft buttons.
WarcraftButtonVariant
Visual variants for Warcraft buttons.
WarcraftCardSize
Size presets for Warcraft cards.
WarcraftFaction
Warcraft faction variants used for styling.
WarcraftLabelVariant
Visual variants for labels.
WarcraftSkeletonShape
Shape variants for skeletons.
WarcraftToastPosition
Screen anchor for a stack of toasts.
WarcraftToastType
Severity/intent variants for WarcraftToast.
WarcraftTooltipVariant
Tooltip rarity variants.

Extensions

WarcraftFactionName on WarcraftFaction
Adds a human-readable label to each WarcraftFaction value.

Typedefs

WarcraftAccordionChanged = void Function(int index, bool expanded)
Reports an accordion item expansion request.
WarcraftAssetErrorCallback = void Function(Object error, StackTrace? stackTrace)
Called when a WarcraftBorderBox frame asset cannot be resolved.
WarcraftCheckboxChanged = void Function(bool value)
Callback signature for Warcraft checkbox changes.
WarcraftPageSemanticLabelBuilder = String Function(int page)
Builds an accessible label for a 1-based pagination page number.
WarcraftRadioChanged<T> = void Function(T value)
Callback signature for Warcraft radio changes.