PulseTheme class

Theme configuration for Pulse SDK UI components.

This class allows consumers of the Pulse SDK to customize the appearance of all UI components, including dialogs, buttons, and other visual elements.

Example usage:

final customTheme = PulseTheme(
  dialogBorderRadius: 20.0,
  dialogBackgroundColor: Colors.white,
  primaryColor: Colors.blue,
);

final pulse = Pulse(
  "client-id",
  "client-secret",
  theme: customTheme,
);

Constructors

PulseTheme({double dialogBorderRadius = 10.0, Color? dialogBackgroundColor, Color? primaryColor, Color? titleTextColor, Color? contentTextColor, EdgeInsets dialogContentPadding = const EdgeInsets.all(8.0), double dialogBlurSigmaX = 1.0, double dialogBlurSigmaY = 1.0, Color dialogBarrierColor = const Color(0x00ff0000), TextStyle? titleTextStyle, TextStyle? contentTextStyle, TextStyle? buttonTextStyle, double? iconSize, Color? errorIconColor, Color? defectIconColor, Color? suggestionIconColor, Color? categoryIconColor})
const

Properties

buttonTextStyle TextStyle?
Text style for buttons
final
categoryIconColor Color?
Color for category icons
final
contentTextColor Color?
Text color for dialog content
final
contentTextStyle TextStyle?
Text style for dialog content
final
defectIconColor Color?
Color for defect/bug icons
final
dialogBackgroundColor Color?
Background color for dialogs
final
dialogBarrierColor Color
Barrier color for dialogs (the overlay behind the dialog)
final
dialogBlurFilter ImageFilter
Gets the image filter for dialog backdrop blur
no setter
dialogBlurSigmaX double
Blur sigma X value for dialog backdrop
final
dialogBlurSigmaY double
Blur sigma Y value for dialog backdrop
final
dialogBorderRadius double
Border radius for all dialogs
final
dialogContentPadding EdgeInsets
Padding for dialog content
final
dialogShape RoundedRectangleBorder
Gets the rounded rectangle border for dialogs based on the theme
no setter
errorIconColor Color?
Color for error icons
final
hashCode int
The hash code for this object.
no setterinherited
iconSize double?
Icon size for dialog icons
final
primaryColor Color?
Primary color used for icons and accents
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
suggestionIconColor Color?
Color for suggestion/improvement icons
final
titleTextColor Color?
Text color for dialog titles
final
titleTextStyle TextStyle?
Text style for dialog titles
final

Methods

copyWith({double? dialogBorderRadius, Color? dialogBackgroundColor, Color? primaryColor, Color? titleTextColor, Color? contentTextColor, EdgeInsets? dialogContentPadding, double? dialogBlurSigmaX, double? dialogBlurSigmaY, Color? dialogBarrierColor, TextStyle? titleTextStyle, TextStyle? contentTextStyle, TextStyle? buttonTextStyle, double? iconSize, Color? errorIconColor, Color? defectIconColor, Color? suggestionIconColor, Color? categoryIconColor}) PulseTheme
Creates a copy of this theme with the given fields replaced with new values.
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

Constants

darkTheme → const PulseTheme
Dark theme with dark colors suitable for dark mode
defaultTheme → const PulseTheme
Default theme - set to dark theme
lightTheme → const PulseTheme
Light theme with bright colors suitable for light mode