TsdtechThemeData class

Immutable data class that holds all visual properties consumed by TSDTech UI widgets. Pass a custom instance to TsdtechUiConfig.initialize to override the default brand appearance.

Example — dark theme with a custom primary color:

TsdtechUiConfig.initialize(
  baseUrl: 'https://api.myapp.com',
  theme: TsdtechThemeData.dark().copyWith(
    primaryColor: const Color(0xFF7C3AED),
  ),
);
Annotations

Constructors

TsdtechThemeData({required Color primaryColor, required Color primaryLightColor, required Color primaryDarkColor, required Color accentColor, required Color backgroundColor, required Color surfaceColor, required Color surfaceVariantColor, required Color outlineColor, required Color textPrimaryColor, required Color textSecondaryColor, required Color textDisabledColor, required Color textOnPrimaryColor, required Color successColor, required Color warningColor, required Color errorColor, required double borderRadius, required String? fontFamily, required Brightness brightness})
const
TsdtechThemeData.dark()
Default dark theme using the TSDTech brand palette.
factory
TsdtechThemeData.light()
Default light theme using the TSDTech brand palette.
factory

Properties

accentColor Color
final
backgroundColor Color
final
borderRadius double
Default border radius used by cards, buttons and input fields.
final
brightness Brightness
Whether the theme is Brightness.light or Brightness.dark.
final
errorColor Color
final
fontFamily String?
Optional custom font family. When null, the system default is used.
final
hashCode int
The hash code for this object.
no setteroverride
outlineColor Color
final
primaryColor Color
final
primaryDarkColor Color
final
primaryLightColor Color
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
successColor Color
final
surfaceColor Color
final
surfaceVariantColor Color
final
textDisabledColor Color
final
textOnPrimaryColor Color
final
textPrimaryColor Color
final
textSecondaryColor Color
final
warningColor Color
final

Methods

copyWith({Color? primaryColor, Color? primaryLightColor, Color? primaryDarkColor, Color? accentColor, Color? backgroundColor, Color? surfaceColor, Color? surfaceVariantColor, Color? outlineColor, Color? textPrimaryColor, Color? textSecondaryColor, Color? textDisabledColor, Color? textOnPrimaryColor, Color? successColor, Color? warningColor, Color? errorColor, double? borderRadius, String? fontFamily, Brightness? brightness}) TsdtechThemeData
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMaterialTheme() ThemeData
Converts this TsdtechThemeData into a Flutter ThemeData that can be applied to a MaterialApp. Useful when the host app wants to align its own theme with the TSDTech brand.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override