WtTheme class
Central design tokens and ready-made light/dark ThemeData for a WT app.
Use the spacing/radius constants for consistent layout, and
WtTheme.light/WtTheme.dark to build a Material 3 theme from a single
seed colour — pass the result to WtConfig(theme: ...) or your own
MaterialApp.
WtConfig.init(WtConfig(
appName: 'My App', baseUrl: '...', secretKey: '...',
theme: WtTheme.light(seed: const Color(0xFF1A73E8)),
));
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
all(
double value) → EdgeInsets -
Symmetric all-round padding of
value. -
dark(
{Color seed = defaultSeed}) → ThemeData -
A Material 3 dark theme seeded from
seed. -
gap(
double value) → SizedBox -
A
SizedBoxgap ofvaluelogical pixels, square. -
hGap(
double value) → SizedBox -
A horizontal
SizedBoxgap ofvaluelogical pixels. -
light(
{Color seed = defaultSeed}) → ThemeData -
A Material 3 light theme seeded from
seed. -
rounded(
[double radius = radiusMd]) → RoundedRectangleBorder -
A RoundedRectangleBorder with a
radiuscorner (default radiusMd). -
vGap(
double value) → SizedBox -
A vertical
SizedBoxgap ofvaluelogical pixels.
Constants
- defaultSeed → const Color
- Default seed colour (WondTech blue) used when none is supplied.
- lg → const double
- 24px.
- md → const double
- 16px — the default gutter.
- radiusLg → const double
- 16px radius.
- radiusMd → const double
- 12px radius (cards, buttons).
- radiusPill → const double
- Fully rounded (pill / circle).
- radiusSm → const double
- 8px radius.
- sm → const double
- 8px.
- xl → const double
- 32px.
- xs → const double
- 4px.
- xxl → const double
- 48px.