heroui_design_system 0.1.12
heroui_design_system: ^0.1.12 copied to clipboard
HeroUI design system components for Flutter.
Changelog #
All notable changes to this project are documented in this file.
0.1.12 #
HeroUiDrawer: moving focus between form fields no longer bounces the panel — iOS briefly collapsesviewInsetswhile the keyboard hides and re-shows, so the last keyboard inset is held while a field inside the drawer keeps focus (released as soon as focus leaves, or after 600 ms if the keyboard is dismissed with the focus retained).
0.1.11 #
HeroUiDrawer(bottom/top sheet): fixed the panel always stretching to the full available height — the scroll viewport expanded to its constraints instead of hugging its content. WithoutmaxHeightthe sheet is now content-sized and only grows until it runs out of screen space.HeroUiDrawer: addedsizing: HeroUiDrawerSizing.fullfor panels that always fill the screen (safe areas and the software keyboard excluded).HeroUiDrawerSizing.auto(default) keeps the content-driven height.HeroUiDrawer: keyboard-aware layout — content andfooterActionsare inset above the software keyboard while the panel surface keeps running behind it (so nothing shows through the keyboard's rounded corners), the home-indicator inset collapses while the keyboard is up, and a sheet with amaxHeightcap grows into the remaining space so form fields stay reachable (it returns to its resting height when the keyboard closes). Top sheets are lifted instead, as they have nothing to fill behind the keyboard.HeroUiDrawer: interactive height — whenmaxHeightleaves room to grow, dragging the header bar (or the content at its top edge) resizes the sheet between its resting height and full height, with velocity-aware snapping; dragging further down still dismisses and now also drops the keyboard. Opt out withexpandable: false.HeroUiDrawer:footerActionsare laid out as a real panel section instead of a floating overlay with an estimated 48px height, so multi-line or taller footers no longer overlap the content.HeroUiDrawer(top sheet): content now clears the status bar — the panel still reaches the screen edge, but its scrollable content carries the top safe-area inset.HeroUiDrawer: fixed a programmatic scroll (for example the caret being brought on screen when a field takes focus) being mistaken for a swipe, which could leave the panel stuck at the wrong height.HeroUiDrawer: panel state (drag offset, scroll shadows, height) moved into aStateobject — it is no longer reset by unrelatedMediaQuerychanges such as the keyboard opening.- Data display (
HeroUiAvatar,HeroUiBadge,HeroUiChip,HeroUiMeter, type tokens): added dark-theme colors for default/neutral types — foreground, soft backgrounds, and primary badge fills;HeroUiAvatarandHeroUiKbdno longer use light-only surfaces.
0.1.10 #
HeroUiToastService: toasts now default to top placement (HeroUiToastPlacement.top); useplacement: HeroUiToastPlacement.bottomto restore the previous bottom position.HeroUiFieldset: uses [HeroUiSurfaceVariant.defaultVariant] in dark mode and [HeroUiSurfaceVariant.secondary] in light.HeroUiTagGroup: dark-theme backgrounds and hover states for tag chips (aligned with data-display zinc tokens); selected accent tint adjusted for dark.HeroUiDrawer(bottom/top sheet): added top content inset below the header shadow so the first line is not covered.HeroUiDrawer(bottom/top sheet): scroll-edge shadow under the fixed header is always shown (not only when the body scrolls).HeroUiDrawer: replaced the bottom/top drag pill with a sheet header bar — centeredtitle(bodySmMedium), optionalheaderLeading/headerTrailing, swipe-to-dismiss on the bar. Subtitle/description stays in scrollable content below the bar.HeroUiDrawer: added optionalmaxWidthfor bottom/top panels (full width when null; clamped to logical viewport width). AddedkBottomSheetMaxWidth(468) as a shared token for wide-viewport bottom sheets. Documented thatsizeapplies only to left/right placements.
0.1.9 #
– Fixed HeroUiTab swipe pointer.
0.1.8 #
HeroUiSelect,HeroUiComboBox, andHeroUiAutocomplete: added closing animation parity with opening by reversing the same dropdown overlay animation before removing the overlay.HeroUiComboBoxandHeroUiAutocomplete: hardened overlay lifecycle handling (includingdispose) to avoid teardown assertions and focus-related race conditions when opening/closing rapidly.HeroUiAutocomplete: dropdown now closes on outside tap and on item selection; filtering state is kept in sync when externalitems/valuesprops change.HeroUiAutocomplete: on mobile layouts, the field now expands to full available width.HeroUiInputOtp: reworked cell row sizing to adapt to available width (with a narrow-width horizontal scroll fallback), preventing right-sideRenderFlexoverflows for compact screens.
0.1.7 #
HeroUiButtonGroup(attached, horizontal,width: hug): when the parent supplies a finite max width, segments now share the row withExpandedandHeroUiButton.expandso the group no longer overflows narrow layouts (e.g. catalog cards).HeroUiSelect: closing the dropdown fromdispose()removes the overlay only and skipssetState, avoiding lifecycle assertions and follow-on errors during widget teardown.- Tuned layout metrics on core controls (buttons, button groups, checkbox, radio, slider, switch, star review, close button, and key data-display surfaces) so padding, min sizes, radii, and icon sizes stay consistent with the updated visual scale.
0.1.6 #
HeroUiTabs: validate the tab strip indicatorRectfrom layout (localToGlobal/RenderBox.size) so only finiteleft,top,width, andheightare passed intoAnimatedPositioned. This preventsStacklayout assertions (height.isNaN) when transient or invalid geometry would otherwise reach the positioned child.
0.1.5 #
- Added
HeroUiShell: shell similar toScaffoldwhere the app bar and bottom navigation sit in aStackabove the body with margins and roundedMaterialsurfaces (floating / iOS-style chrome). Body is full-bleed; optionalresizeToAvoidBottomInsetshifts content when the keyboard opens. HeroUiDrawer: added optionalmaxHeight(0–1, fraction of logical window height) to cap panel height; when there are nofooterActions, removed the extra bottom spacer and applied bottomviewPaddingasSingleChildScrollViewpadding so content scrolls clear of the home indicator on bottom sheets.HeroUiDrawer(bottom/top handle): header no longer shows the close icon when the drag handle is present; tapping the handle dismisses the drawer; swipe-to-close by dragging the handle is unchanged.- Added
HeroUiMenuCardandHeroUiMenuItem(collections): grouped rows insideHeroUiCardwith iOS Settings–style inset separators (HeroUiSeparator), optional leading, subtitle, trailing, and optionalonTap. Interactive rows use hover (HeroUiSurfaceVariant.secondary) and pressed (HeroUiSurfaceVariant.tertiary) fills viaHeroUiSurface(no extra shadow); non-tappable rows stay visual-only. - Added
HeroUiSurface.fillColorto resolve the same default fill colors asHeroUiSurfacefor a givenHeroUiSurfaceVariantand theme brightness (single source of truth with the widget’sbuildmethod). - Expanded
HeroUiIconManifestwith a constant for every icon underassets/icons(camelCase names map to SVG stems). Removed theRegularsuffix from manifest entries; update call sites accordingly. Chevron navigation icons that map toarrow-chevron-left/arrow-chevron-rightassets are nowarrowChevronLeftandarrowChevronRight. - Added
HeroUiTypography.textOTPFieldBase(16px, weight 600) and wiredHeroUiInputOtpvalue text to use it instead ofbodySmMedium. - Improved
HeroUiInputOtplayout: wider cells, symmetric padding, full-widthTextFieldso digits stay centered and are not clipped. - Added dark-theme styling for
HeroUiCloseButton(surface, icon, and focus inner ring colors). - Applied a light press feedback (
AnimatedScaleto 0.97) to the whole control forHeroUiButtonandHeroUiCloseButton, including background and borders, not only the label or icon.
0.1.4 #
- Updated
HeroUiCardto useHeroUiSurfacebackgrounds with configurable surface variants. - Extended
HeroUiSurfacewithshowShadowandbackgroundColoroptions for reusable surface styling. - Improved
HeroUiDrawerwith configurablesurfaceVariant, full-width swipe handle area, and release-based swipe-to-close behavior. - Reworked
HeroUiDrawerlayout paddings so header/footer keep insets while content body remains edge-to-edge. - Removed unwanted text underlines in drawer content and standardized overlay close actions to use
HeroUiCloseButton. - Added new typography tokens:
HeroUiTypography.bodyXxsandHeroUiTypography.bodyXxsMedium(10px). - Renamed packaged icon assets by removing
heroui-v3-icon__prefix and__regularsuffix, and updated manifest/icon references to the new names. - Fixed inherited text decoration in
HeroUiToastsoHeroUiToastServicenotifications no longer render with yellow double underlines.
0.1.3 #
– Updated HeroUiSpinner
0.1.2 #
- Updated
HeroUiTimeFieldto use a bottom sheet modal picker. - Reworked time inputs to
HeroUiInput(secondary) with digits-only validation. - Added
HeroUiStarReview, a 5-point star rating component built withHeroUiToggleButtonGroup. - Updated component catalog demos to cover the new time picker flow and star review component.
0.1.0 #
- Initial release of the HeroUI Flutter design system package.
- Includes core UI components, typography, and icon assets.