Skip to main content

portal_ui_core 0.1.0 copy "portal_ui_core: ^0.1.0" to clipboard
portal_ui_core: ^0.1.0 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.

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
0
points
182
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

animations, flutter, flutter_animate, shimmer

More

Packages that depend on portal_ui_core