KillSwitchTheme class
Configuration class for customizing the appearance of kill switch dialogs
Constructors
- KillSwitchTheme.new({Color? backgroundColor, Color? primaryColor, Color? titleTextColor, Color? bodyTextColor, Color? buttonBackgroundColor, Color? buttonTextColor, double? borderRadius, double? buttonBorderRadius, Color? shadowColor, double? shadowBlurRadius, double? shadowSpreadRadius, TextStyle? titleTextStyle, TextStyle? bodyTextStyle, TextStyle? buttonTextStyle, double? iconSize, EdgeInsets? dialogPadding, bool? useDarkTheme, Color? borderColor, double? borderWidth, Color? linkColor, TextStyle? richContentTextStyle, Color? inputBorderColor, Color? inputBackgroundColor, Color? inputTextColor, double? mediaBorderRadius, double? imageMaxHeight, double? imageMaxWidth, Duration? animationDuration, Curve? entranceCurve, Curve? exitCurve, bool? enableAnimations, Duration? loadingAnimationDuration, bool? enableParticleEffects, Color? particleColor, int? particleCount, AnimationType? animationType})
-
const
- KillSwitchTheme.auto(BuildContext context)
-
Creates an auto theme that adapts to system brightness
factory
- KillSwitchTheme.dark()
-
Creates a dark theme with default values
factory
- KillSwitchTheme.light()
-
Creates a light theme with default values
factory
Properties
- animationDuration → Duration?
-
Animation duration for dialog transitions
final
- animationType → AnimationType?
-
Animation type for dialog transitions
final
- backgroundColor → Color?
-
Background color of the dialog container
final
- bodyTextColor → Color?
-
Text color for body text
final
- bodyTextStyle → TextStyle?
-
Body text style
final
- borderColor → Color?
-
Border color for the dialog
final
- borderRadius → double?
-
Border radius for the dialog
final
- borderWidth → double?
-
Border width for the dialog
final
-
Button background color
final
-
Border radius for buttons
final
-
Button text color
final
-
Button text style
final
- dialogPadding → EdgeInsets?
-
Dialog padding
final
- enableAnimations → bool?
-
Whether to enable smooth transitions
final
- enableParticleEffects → bool?
-
Particle effect settings
final
- entranceCurve → Curve?
-
Animation curve for dialog entrance
final
- exitCurve → Curve?
-
Animation curve for dialog exit
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconSize → double?
-
Icon size
final
- imageMaxHeight → double?
-
Maximum height for images in rich content
final
- imageMaxWidth → double?
-
Maximum width for images in rich content
final
- inputBackgroundColor → Color?
-
Form input background color
final
- inputBorderColor → Color?
-
Form input border color
final
- inputTextColor → Color?
-
Form input text color
final
- linkColor → Color?
-
Link color for rich content
final
- loadingAnimationDuration → Duration?
-
Loading animation duration
final
- mediaBorderRadius → double?
-
Media content border radius
final
- particleColor → Color?
-
Particle effect color
final
- particleCount → int?
-
Number of particles for effects
final
- primaryColor → Color?
-
Primary color used for icons and buttons
final
- richContentTextStyle → TextStyle?
-
Rich content text style
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shadowBlurRadius → double?
-
Shadow blur radius
final
- shadowColor → Color?
-
Shadow color for the dialog
final
- shadowSpreadRadius → double?
-
Shadow spread radius
final
- titleTextColor → Color?
-
Text color for titles
final
- titleTextStyle → TextStyle?
-
Title text style
final
- useDarkTheme → bool?
-
Whether to use dark theme automatically based on system settings
final
Methods
-
copyWith(
{Color? backgroundColor, Color? primaryColor, Color? titleTextColor, Color? bodyTextColor, Color? buttonBackgroundColor, Color? buttonTextColor, double? borderRadius, double? buttonBorderRadius, Color? shadowColor, double? shadowBlurRadius, double? shadowSpreadRadius, TextStyle? titleTextStyle, TextStyle? bodyTextStyle, TextStyle? buttonTextStyle, double? iconSize, EdgeInsets? dialogPadding, bool? useDarkTheme, Color? borderColor, double? borderWidth, Color? linkColor, TextStyle? richContentTextStyle, Color? inputBorderColor, Color? inputBackgroundColor, Color? inputTextColor, double? mediaBorderRadius, double? imageMaxHeight, double? imageMaxWidth, Duration? animationDuration, Curve? entranceCurve, Curve? exitCurve, bool? enableAnimations, Duration? loadingAnimationDuration, bool? enableParticleEffects, Color? particleColor, int? particleCount, AnimationType? animationType}) → KillSwitchTheme - Creates a copy of this theme with the given fields replaced
-
getEffectiveBodyTextStyle(
) → TextStyle - Gets the effective text style for body text
-
getEffectiveButtonTextStyle(
) → TextStyle - Gets the effective text style for buttons
-
getEffectiveTitleTextStyle(
) → TextStyle - Gets the effective text style for titles
-
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