veta_templates
Layout primitives for Veta apps — Flutter mirror of @vetaui/templates.
import 'package:veta_templates/veta_templates.dart';
VetaContainer(
size: VetaContainerSize.lg,
child: VetaStack(
gap: 16,
children: [
VetaHeading('Welcome', size: VetaHeadingSize.xl2),
VetaText('Body copy here.'),
],
),
)
| Widget | Purpose |
|---|---|
VetaContainer |
Centred max-width wrapper with horizontal padding. |
VetaStack |
Row or column with gap, alignment, and justify props. |
VetaGrid |
Responsive column grid (1 / 2 / 3 / 4 / 6 / 12 cols). |
VetaHeading |
Semantic heading (h1–h6 equivalent) with size/weight/align. |
VetaText |
Body text with variant (body / lead / small / caption / overline). |
Layout primitives have no opinion on tokens beyond what VetaTheme
already provides — they read colorScheme / textTheme from Theme.of.