portal_ui_core 0.4.0
portal_ui_core: ^0.4.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.
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.