Skip to main content

portal_ui_core 0.4.1 copy "portal_ui_core: ^0.4.1" to clipboard
portal_ui_core: ^0.4.1 copied to clipboard

Design tokens, ThemeExtension, and theme factories for the Portal UI kit.

portal_ui_core #

Design system for the Portal apps: tokens (spacing, radii, type, motion, elevation, layout), a PortalUiTheme ThemeExtension, theme factories and a set of themed components.

Buttons, stat cards and cards, light theme Same page, dark theme Filter chips, segmented tabs, search, skeleton and empty state Same, dark theme

Every screenshot is the example/ app — run it on a device to walk the components with a brightness and preset toggle in the app bar.

import 'package:portal_ui_core/portal_ui_core.dart';

MaterialApp(
  theme: buildPortalTheme(brightness: Brightness.light),
  darkTheme: buildPortalTheme(brightness: Brightness.dark),
);

// in a widget
final tokens = PortalUiTheme.of(context).tokens;
Padding(padding: EdgeInsets.all(tokens.spacing.md), child: PortalCard(...));

Components: PortalAppBar, PortalBottomNavBar, PortalButton, PortalCard, PortalConfirmDialog, PortalEmptyState, PortalFilterChip, PortalSkeleton / PortalListSkeleton, PortalScrollPage, PortalSearchField, PortalSectionHeader, PortalSegmentedTabs, PortalStatCard, PortalStartupGate / PortalStartupSplash.

Three tiers of theme entry, take the highest that fits: PortalThemeConfig → buildPortalTheme → hand-rolled PortalUiTheme.

0
likes
140
points
182
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Design tokens, ThemeExtension, and theme factories for the Portal UI kit.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

animations, auto_size_text, cached_network_image, dynamic_color, flutter, flutter_animate, flutter_svg, intl, material_color_utilities, material_symbols_icons, shimmer

More

Packages that depend on portal_ui_core