IxThemeBuilder class
Builds ThemeData instances that comply with the Siemens IX color and type
scale guidance.
The builder only wires up global colors (color scheme, surfaces, text,
etc.). Component-specific theming will be layered on top later. Most apps
place the builder inside main() so the resulting theme can be passed to a
MaterialApp (or WidgetsApp).
void main() {
final lightTheme = const IxThemeBuilder().build();
final darkTheme = const IxThemeBuilder(mode: ThemeMode.dark).build();
runApp(
MaterialApp(
theme: lightTheme,
darkTheme: darkTheme,
home: const MyDashboard(),
),
);
}
Constructors
- IxThemeBuilder({IxThemeFamily family = IxThemeFamily.classic, ThemeMode mode = ThemeMode.system, Brightness systemBrightness = Brightness.light, IxTypography? typography, IxCustomPalette? customPalette})
-
const
Properties
- customPalette → IxCustomPalette?
-
Optional custom palette that replaces the built-in family colors.
final
- family → IxThemeFamily
-
Siemens IX visual family (classic vs. custom overrides).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- mode → ThemeMode
-
Material theme mode to resolve light/dark variants.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- systemBrightness → Brightness
-
Platform brightness hint used when mode is ThemeMode.system.
final
- typography → IxTypography?
-
Optional override for the Siemens IX type scale.
final
Methods
-
build(
) → ThemeData - Returns ThemeData configured with Siemens IX global colors and fonts.
-
copyWith(
{IxThemeFamily? family, ThemeMode? mode, Brightness? systemBrightness, IxTypography? typography, IxCustomPalette? customPalette}) → IxThemeBuilder - Copies the builder with selective overrides.
-
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