WavePlayerTheme class
Theme configuration for the Wave Player package.
Use WavePlayerColors.setTheme to customize colors globally:
WavePlayerColors.setTheme(const WavePlayerTheme(
primaryColor: Colors.blue,
errorColor: Colors.red,
));
Constructors
- WavePlayerTheme({Color primaryColor = const Color(0xFF007AFF), Color secondaryColor = const Color(0xFF5856D6), Color successColor = const Color(0xFF34C759), Color warningColor = const Color(0xFFFF9500), Color errorColor = const Color(0xFFFF3B30), Color backgroundColor = const Color(0xFFF5F5F7), Color surfaceColor = const Color(0xFFFFFFFF), Color textColor = const Color(0xFF1A1A1A), Color textSecondaryColor = const Color(0xFF5F6368), Color borderColor = const Color(0xFFE1E1E1)})
-
Creates a WavePlayerTheme with optional color overrides.
const
Properties
- backgroundColor → Color
-
Background color for the player container.
final
- borderColor → Color
-
Border color for outlined elements.
final
- errorColor → Color
-
Color indicating error state.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- playButton → Color
-
Color of the play button background.
no setter
- playButtonPressed → Color
-
Color of the play button when pressed.
no setter
- primaryColor → Color
-
Primary brand color used for active waveform, play button, etc.
final
- primaryDark → Color
-
A darker shade of primaryColor.
no setter
- primaryLight → Color
-
A lighter shade of primaryColor.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondaryColor → Color
-
Secondary accent color.
final
- successColor → Color
-
Color indicating success state.
final
- surfaceColor → Color
-
Surface color for elevated elements.
final
- surfaceVariant → Color
-
A blended surface/background color.
no setter
- textColor → Color
-
Primary text color.
final
- textSecondaryColor → Color
-
Secondary text color for less prominent labels.
final
- warningColor → Color
-
Color indicating warning state.
final
- waveformActive → Color
-
Color for active (played) waveform bars.
no setter
- waveformInactive → Color
-
Color for inactive (unplayed) waveform bars.
no setter
- waveformThumb → Color
-
Color of the waveform slider thumb.
no setter
Methods
-
copyWith(
{Color? primaryColor, Color? secondaryColor, Color? successColor, Color? warningColor, Color? errorColor, Color? backgroundColor, Color? surfaceColor, Color? textColor, Color? textSecondaryColor, Color? borderColor}) → WavePlayerTheme - Returns a copy of this theme with the given 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