Skip to main content

jade_ui 0.3.0 copy "jade_ui: ^0.3.0" to clipboard
jade_ui: ^0.3.0 copied to clipboard

A token-driven Flutter component library with first-class light and dark themes, independent of Material and Cupertino.

Changelog #

0.3.0 #

  • An MCP server ships in the package. dart run jade_ui:mcp starts a stdio MCP server with list_components, get_component, search and read_doc tools that answer from the docs of the installed Jade UI version. The package now depends on dart_mcp and path. Test: test/mcp_server_test.dart.
  • The app skill ships in the package. skills/jade-ui-build-apps/ holds the Agent Skill for building apps with Jade UI, formerly use-jade-ui in the repository only. Install it into an app with dart run skills@ get -p jade_ui --all. Test: test/agent_config_test.dart.
  • Dropdown opens on a right click. The new DropdownTriggerMode.secondaryClick opens the menu on a secondary click, or on the context-menu key or Shift+F10 while the trigger has focus, so a dropdown can serve as a context menu. The menu anchors to the trigger. Test: test/dropdown_test.dart.
  • Keyboard support for components that lacked it. ListBox rows take focus and select with Enter or Space. Popover takes focus when it opens, closes on Escape and returns focus to its trigger. Tooltip shows when its child gains focus and hides on blur or Escape, as its docs already said. AreaChart, BarChart and DonutChart step through points and slices with the arrow keys, Home and End. Test: test/keyboard_test.dart.
  • New Stagger and StaggerItem. A one-off entrance that plays on each StaggerItem in turn, interval apart, as a fade, a fade-up or a scale. One controller drives the group, so items can sit in any layout, including lazy lists. Items from maxStaggered onwards start together, items built after the entrance show without animating, and rebuilds don't replay it. It follows ThemeData.motion and the platform's reduce-motion setting. Test: test/stagger_test.dart.
  • Dark mode keeps the theme's font. When JadeApp.darkTheme is null, the dark theme now takes the typography of theme, recolored for dark surfaces, so a font family set on the light theme no longer falls back to the platform font in dark mode. Test: test/jade_app_test.dart.

0.2.0 #

  • Balanced underline tabs. The secondary Tabs variant insets each label by the space the eye reads above and below it, half the tab height minus the cap height, so the underline sits close to the text: 10px at sm and 11px at md, from 8px at xs to 18px at xxxl. The pill variant keeps its padding. Test: test/tabs_padding_test.dart.
  • Per-tab navigation. TabScaffold.tabNavigators gives each tab its own navigator, so a page pushed inside a tab keeps the tab bar and each tab keeps its own stack. Selecting the active tab again, or TabScaffoldController.popToRoot, pops it to its first route, and the system back button pops the active tab before the app. Test: test/tab_scaffold_test.dart.
  • Router support. JadeApp.router takes a routerConfig (or a routerDelegate and friends), so go_router and other Router-based packages work with Jade's theme, localization and hero transitions. Return JadePage or FadePage from the router's page builders. Test: test/jade_app_test.dart.
  • Navigator helpers. pushNamed, pushReplacementNamed and pushNamedAndRemoveUntil take arguments and pass their result type through, and pushReplacement and pushReplacementNamed take the result for the replaced route. Breaking: useRootNavigator is now rootNavigator on every helper; pushNamedAndRemoveUntil drops title, settings, maintainState, fullscreenDialog and allowSnapshotting, which it ignored (named routes come from onGenerateRoute or pageRouteBuilder); pushReplacement and pushReplacementNamed now have a second type argument, so write pushReplacement<T, TO> when giving types explicitly. Test: test/navigator_utils_test.dart.
  • Charts. AreaChart, BarChart, DonutChart and Sparkline, drawn with CustomPainter from the theme's colours, with ChartPoint, ChartSlice, ChartLegend and chartSeriesColors beside them. The axis charts show a tooltip on hover, tap or drag, take a format callback and a color role, and compare against the previous period with showPrevious. Tests: test/area_chart_test.dart, test/bar_chart_test.dart, test/donut_chart_test.dart, test/sparkline_test.dart.
  • Sidebar items. SidebarItem and SidebarGroupLabel give Sidebar its own navigation rows: 36px rows with a 16px icon, a 14px label that truncates and a muted 12px trailing count, plus 12px group headings. In a compact sidebar the rows shrink to their icon with a tooltip and group labels hide. Breaking: Sidebar.width defaults to 240 (was 260) and compactWidth to 56 (was 72). Test: test/sidebar_test.dart.
  • Fade route. FadeRoute and its Page companion FadePage cross-fade a page in over 300ms, for changes of app state such as splash to home or sign-out to welcome. No swipe-back, and the route underneath stays still. The fade follows Motion and is instant with reduced motion. Test: test/fade_route_test.dart.
  • Dialog sizes. Dialog.size takes a DialogSize again: xs (300), sm (384), md (448), lg (512), cover and full. Without one, dialogs are xs on mobile and md on wider screens. Breaking: Dialog.maxWidth is removed; read DialogSize.maxWidth instead. Test: test/dialog_test.dart.
  • Soft checkbox and radio. ControlVariant.soft now matches a soft chip: bordered like outline when unselected, and filled with the role's soft tint and soft foreground when selected, with no shadow. Breaking: ControlDefaults.shadows is removed, since no control draws a shadow now; drop the argument. ControlVariant.secondary is renamed solid, and Checkbox and Radio now default to solid instead of outline; pass variant: .outline or set ControlDefaults.variant to keep the old look. Test: test/selection_control_variant_test.dart.
  • No blur on the web. ScrollShadow.blur and DialogBackdrop.blur don't blur on the web: the scroll shadow keeps its gradient fades and the dialog barrier is dimmed only, like opaque.
  • Templates. Seven complete apps now live in their own repository, jade_templates, each with a live demo: Pulse, Relay, Muse, Harbor, Tally, Loom and Haven. The website's Templates page links to them.
  • Example. example/ is now a single profile screen instead of the Atrium booking app.

0.1.0 #

Initial release of Jade UI, a token-driven Flutter component library with first-class light and dark themes, independent of Material and Cupertino.

  • One import. Everything public comes from package:jade_ui/jade_ui.dart, which also re-exports package:flutter/widgets.dart.
  • App shell. JadeApp sets up theming, navigation and localization. AppScope brings Jade widgets into an app that already has its own shell.
  • Theming. ThemeData.light() and ThemeData.dark() with semantic color, typography, radius, border, shadow and breakpoint tokens, read through context.colors, context.text, context.radii, context.shadows and context.breakpoints. An accent color can be seeded from an image with ImagePalette, and ThemeData.defaults sets component sizes, variants, radii and shadows app-wide.
  • Buttons and actions. Button, IconButton, CircleButton, ButtonGroup, ToggleButton, ToggleButtonGroup, CloseButton, Link and Kbd.
  • Forms and inputs. Text fields (Input, TextArea, SearchField, NumberField, PromptInput, InputOtp, NumberPad), choice controls (Checkbox, CheckboxGroup, Radio, Switch, Slider, Rating, Select, Autocomplete), date and time pickers (Calendar, RangeCalendar, DateField, DatePicker, DateRangePicker, TimeField, TimePicker, TimeWheel, Dial), color pickers (ColorArea, ColorField, ColorPicker, ColorSlider, ColorSwatchPicker) and form validation with FormScope, Fieldset, Label, Description and FieldError.
  • Data display. Accordion, Avatar, AvatarGroup, Badge, Card, Carousel, Chip, EmptyState, FlipCard, AppImage, JadeText, ListBox, ListTile, Snippet, AppTable, Timeline and User.
  • Layout and navigation. Scaffold, AppBar, SliverAppBar, TabScaffold, DrawerLayout, Grid, Toolbar, BottomBar, Tabs, BottomTabBar, Breadcrumbs, Pagination, Navbar, Sidebar, Stepper, and JadePageRoute and JadePage for page transitions.
  • Overlays and feedback. showDialog, showBottomSheet and showDrawer, plus Popover, Dropdown, Tooltip, ToastManager, Alert, ProgressBar, Spinner, TypingIndicator, Skeleton and LoadingScreen.
  • Icons. A small set of built-in icons for the components' own controls. Jade bundles no icon font, so pass your app's icons into widget slots.
  • Accessibility and localization. Controls such as Switch, Checkbox, Slider, Tabs, Accordion and Select report their role and state to screen readers, and alerts and toasts are live regions. Component strings come from JadeLocalizations, which ships in English and can be overridden.
  • Docs for people and coding agents. A page per component, a machine-readable API index, llms.txt and a guide for coding agents that build apps with Jade UI.
  • Example app. example/ holds Atrium, a studio booking app built only from Jade UI components, in light and dark mode at phone and desktop widths.
1
likes
160
points
465
downloads

Documentation

API reference

Publisher

verified publisherarkinsta.org

Weekly Downloads

A token-driven Flutter component library with first-class light and dark themes, independent of Material and Cupertino.

Homepage

Topics

#ui #widget #design-system #theming #components

License

BSD-3-Clause (license)

Dependencies

cached_network_image, cupertino_ui, dart_mcp, flutter, flutter_markdown_plus, flutter_svg, intl, material_ui, path

More

Packages that depend on jade_ui