ousi_ui 0.2.0
ousi_ui: ^0.2.0 copied to clipboard
A beautiful, production-ready Flutter UI library with 35+ components, smooth micro-interactions, OKLCH colors, and full dark mode. Inspired by HeroUI.
0.2.0 #
Added #
Charts
OChartMarker— visual markers on candles and data points (BUY/SELL/TP/SL pills with dotted guide lines), placedaboveorbelowviaOChartMarkerPosition. Available throughCandlePoint.markerandChartPoint.marker.- Pinch-to-zoom on
OChartviazoomEnabled, bounded byminWindowSecs/maxWindowSecs. - Horizontal pan to scroll back through historical data.
- Vertical drag on the chart to adjust the visible value range interactively.
rangePaddingto control vertical margin as a fraction of the data range (default0.12; use0.05for tight forex data,0to fill the full height).
Navigation
OAdaptiveSidebarItem.iconWidget/activeIconWidgetfor custom icon widgets (HugeIcon,SvgPicture, …).iconis now optional — one oficonoriconWidgetis required.OAdaptiveSidebar.sidebarBorderRadiusto override the panel radius.OBottomNavItem.subTabs(OBottomNavSubTab) — sub-tabs shown in a panel above the bar when the item is selected.OBottomNavItem.badgefor notification dots and counts.OBottomNav.borderRadius,activeColor,activeBackgroundColorandinactiveColor.
Other
OCalendar.onViewChanged(year, month)— fires when the visible month changes, for lazy-loading month data.OExpandButton.fullWidthto opt out of full-width layout.
Changed #
OAdaptiveSidebartransition between sidebar and floating top bar is now a single coordinated animation, with the selection pill measured from real item geometry instead of estimated offsets.OCardcontent now stretches to the card's full width instead of shrink-wrapping.- Glass, frosted and liquid-glass surfaces now honour the configured
opacityexactly; the previous per-style minimum clamps were removed, so themes with low opacity render as configured.
Fixed #
- Chart Y-range no longer collapses on small-magnitude data (forex, low-priced assets); the flat-line fallback now scales with the value instead of using fixed thresholds.
Removed #
- Unused
flutter_staggered_grid_viewdependency.
0.1.0 #
Initial release of Ousi UI for Flutter.
Components (35+) #
Buttons: OButton, OExpandButton, OLinkButton
Forms: OTextField, OSearchField, OSelect, OSwitch, OCheckbox, ORadio, OSlider, OInputOTP, OTagGroup, OColorPicker, ODatePicker, OTimePicker
Data Display: OAvatar, OBadge, OSeparator, OSpinner, OAccordion, OAnimatedNumber, OCalendar
Navigation: OTabs, OAdaptiveSidebar, OBottomNav, OAppBar, OAppBarScaffold, OScrollTitle
Overlays: OBottomSheet, OModal, OPopover, OTooltip, OToast, OMenu
Feedback: OAlert, OProgressBar, OSkeleton
Primitives: OCard, OScrollShadow
Charts: OChart (line, multi-series, candlestick)
Features #
- OKLCH-inspired color system with full dark mode
- Dual radius system (general + field radius)
- Theme extension system via
OusiThemeData - iOS 26-style app bar with floating pill elements
- Adaptive sidebar (sidebar on wide, floating top bar on narrow)
- Toast system with stacking, swipe dismiss, and promise API
- Chart engine with spline interpolation and time windows
- SearchField with mitosis animation and thinking glow