Skip to main content

heroui_design_system 0.1.12 copy "heroui_design_system: ^0.1.12" to clipboard
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 collapses viewInsets while 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. Without maxHeight the sheet is now content-sized and only grows until it runs out of screen space.
  • HeroUiDrawer: added sizing: HeroUiDrawerSizing.full for 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 and footerActions are 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 a maxHeight cap 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 — when maxHeight leaves 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 with expandable: false.
  • HeroUiDrawer: footerActions are 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 a State object — it is no longer reset by unrelated MediaQuery changes 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; HeroUiAvatar and HeroUiKbd no longer use light-only surfaces.

0.1.10 #

  • HeroUiToastService: toasts now default to top placement (HeroUiToastPlacement.top); use placement: HeroUiToastPlacement.bottom to 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 — centered title (bodySmMedium), optional headerLeading / headerTrailing, swipe-to-dismiss on the bar. Subtitle/description stays in scrollable content below the bar.
  • HeroUiDrawer: added optional maxWidth for bottom/top panels (full width when null; clamped to logical viewport width). Added kBottomSheetMaxWidth (468) as a shared token for wide-viewport bottom sheets. Documented that size applies only to left/right placements.

0.1.9 #

– Fixed HeroUiTab swipe pointer.

0.1.8 #

  • HeroUiSelect, HeroUiComboBox, and HeroUiAutocomplete: added closing animation parity with opening by reversing the same dropdown overlay animation before removing the overlay.
  • HeroUiComboBox and HeroUiAutocomplete: hardened overlay lifecycle handling (including dispose) 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 external items/values props 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-side RenderFlex overflows for compact screens.

0.1.7 #

  • HeroUiButtonGroup (attached, horizontal, width: hug): when the parent supplies a finite max width, segments now share the row with Expanded and HeroUiButton.expand so the group no longer overflows narrow layouts (e.g. catalog cards).
  • HeroUiSelect: closing the dropdown from dispose() removes the overlay only and skips setState, 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 indicator Rect from layout (localToGlobal / RenderBox.size) so only finite left, top, width, and height are passed into AnimatedPositioned. This prevents Stack layout assertions (height.isNaN) when transient or invalid geometry would otherwise reach the positioned child.

0.1.5 #

  • Added HeroUiShell: shell similar to Scaffold where the app bar and bottom navigation sit in a Stack above the body with margins and rounded Material surfaces (floating / iOS-style chrome). Body is full-bleed; optional resizeToAvoidBottomInset shifts content when the keyboard opens.
  • HeroUiDrawer: added optional maxHeight (0–1, fraction of logical window height) to cap panel height; when there are no footerActions, removed the extra bottom spacer and applied bottom viewPadding as SingleChildScrollView padding 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 HeroUiMenuCard and HeroUiMenuItem (collections): grouped rows inside HeroUiCard with iOS Settings–style inset separators (HeroUiSeparator), optional leading, subtitle, trailing, and optional onTap. Interactive rows use hover (HeroUiSurfaceVariant.secondary) and pressed (HeroUiSurfaceVariant.tertiary) fills via HeroUiSurface (no extra shadow); non-tappable rows stay visual-only.
  • Added HeroUiSurface.fillColor to resolve the same default fill colors as HeroUiSurface for a given HeroUiSurfaceVariant and theme brightness (single source of truth with the widget’s build method).
  • Expanded HeroUiIconManifest with a constant for every icon under assets/icons (camelCase names map to SVG stems). Removed the Regular suffix from manifest entries; update call sites accordingly. Chevron navigation icons that map to arrow-chevron-left / arrow-chevron-right assets are now arrowChevronLeft and arrowChevronRight.
  • Added HeroUiTypography.textOTPFieldBase (16px, weight 600) and wired HeroUiInputOtp value text to use it instead of bodySmMedium.
  • Improved HeroUiInputOtp layout: wider cells, symmetric padding, full-width TextField so 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 (AnimatedScale to 0.97) to the whole control for HeroUiButton and HeroUiCloseButton, including background and borders, not only the label or icon.

0.1.4 #

  • Updated HeroUiCard to use HeroUiSurface backgrounds with configurable surface variants.
  • Extended HeroUiSurface with showShadow and backgroundColor options for reusable surface styling.
  • Improved HeroUiDrawer with configurable surfaceVariant, full-width swipe handle area, and release-based swipe-to-close behavior.
  • Reworked HeroUiDrawer layout 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.bodyXxs and HeroUiTypography.bodyXxsMedium (10px).
  • Renamed packaged icon assets by removing heroui-v3-icon__ prefix and __regular suffix, and updated manifest/icon references to the new names.
  • Fixed inherited text decoration in HeroUiToast so HeroUiToastService notifications no longer render with yellow double underlines.

0.1.3 #

– Updated HeroUiSpinner

0.1.2 #

  • Updated HeroUiTimeField to 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 with HeroUiToggleButtonGroup.
  • 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.
1
likes
120
points
49
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

HeroUI design system components for Flutter.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, flutter_svg

More

Packages that depend on heroui_design_system