SplashTheme class

Defines the visual theme for the splash screen.

Supports light mode, dark mode, and auto-detection from the system theme.

Constructors

SplashTheme({required Color backgroundColor, required Color loaderColor, required Color textColor, required Color retryButtonColor, required Color retryButtonTextColor})
Creates a SplashTheme with explicit color values.
const
SplashTheme.auto(BuildContext context)
Returns light or dark theme based on the device's current brightness.
factory
SplashTheme.custom({required Color backgroundColor, required Color loaderColor, required Color textColor, Color? retryButtonColor, Color? retryButtonTextColor})
Creates a custom theme with your own color palette.
factory
SplashTheme.dark()
A dark theme preset (dark background, light text).
factory
SplashTheme.light()
A light theme preset (white background, dark text).
factory

Properties

backgroundColor Color
Background color of the splash screen.
final
hashCode int
The hash code for this object.
no setterinherited
loaderColor Color
Color of the loading indicator.
final
retryButtonColor Color
Color for the retry button.
final
retryButtonTextColor Color
Color for the retry button text/icon.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textColor Color
Color for primary text elements (app name, tagline).
final

Methods

copyWith({Color? backgroundColor, Color? loaderColor, Color? textColor, Color? retryButtonColor, Color? retryButtonTextColor}) SplashTheme
Returns a copy of this theme with specified fields replaced.
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