CountdownTheme class
Theme configuration for countdown timer appearance
Constructors
-
CountdownTheme({Color primaryColor = Colors.blue, Color? secondaryColor, Color? backgroundColor, Color? textColor, Color? iconColor, Color? borderColor, double borderRadius = 8.0, double borderWidth = 1.0, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin, TextStyle? textStyle, TextStyle? titleTextStyle, TextStyle? subtitleTextStyle, List<
BoxShadow> ? boxShadow, Gradient? gradient, double progressStrokeWidth = 6.0, Color? progressBackgroundColor, Color? progressValueColor, bool useResponsiveSizing = true, ResponsiveFontConfig? responsiveFontConfig, ResponsivePaddingConfig? responsivePaddingConfig, ResponsiveIconConfig? responsiveIconConfig, CountdownAnimationConfig? animationConfig, CountdownCustomBuilderConfig? customBuilderConfig, CountdownAdvancedStyle? advancedStyle, Decoration? decoration, Decoration? foregroundDecoration, double? width, double? height, double? minWidth, double? minHeight, double? maxWidth, double? maxHeight}) -
const
- CountdownTheme.dark({Color primaryColor = Colors.blue})
-
Creates a theme with dark mode colors
factory
- CountdownTheme.fromColors({required Color primary, Color? secondary, Color? background, Color? text, Color? icon, Color? border})
-
Creates a theme from Material Design colors
factory
- CountdownTheme.glassMorphism({Color primaryColor = Colors.blue, double blurRadius = 10.0})
-
Creates a glass morphism theme
factory
-
CountdownTheme.gradient({required List<
Color> colors, AlignmentGeometry begin = Alignment.topLeft, AlignmentGeometry end = Alignment.bottomRight, Color? textColor, Color? iconColor}) -
Creates a theme with gradient background
factory
- CountdownTheme.light({Color primaryColor = Colors.blue})
-
Creates a theme with light mode colors
factory
- CountdownTheme.minimal({Color primaryColor = Colors.blue, bool enableBorders = false})
-
Creates a minimal theme with clean design
factory
- CountdownTheme.professional({Color primaryColor = Colors.blue, bool enableAnimations = true, bool enableShadows = true, bool enableRoundedCorners = true})
-
Creates a professional theme with advanced styling
factory
- CountdownTheme.responsive({Color primaryColor = Colors.blue, Color? backgroundColor, Color? textColor, ResponsiveFontConfig? fontConfig, ResponsivePaddingConfig? paddingConfig, ResponsiveIconConfig? iconConfig, CountdownAnimationConfig? animationConfig})
-
Creates a responsive theme with custom configurations
factory
Properties
- advancedStyle → CountdownAdvancedStyle?
-
Advanced styling configuration
final
- animationConfig → CountdownAnimationConfig?
-
Animation configuration
final
- backgroundColor → Color?
-
Background color for the timer container
final
- borderColor → Color?
-
Border color for the timer
final
- borderRadius → double
-
Border radius for the timer container
final
- borderWidth → double
-
Border width for the timer
final
-
boxShadow
→ List<
BoxShadow> ? -
Box shadow for the timer container
final
- customBuilderConfig → CountdownCustomBuilderConfig?
-
Custom builder configuration
final
- decoration → Decoration?
-
Custom decoration
final
- foregroundDecoration → Decoration?
-
Custom foreground decoration
final
- gradient → Gradient?
-
Gradient for gradient style
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- height → double?
-
Custom height
final
- iconColor → Color?
-
Icon color for the timer
final
- margin → EdgeInsetsGeometry?
-
Margin for the timer container
final
- maxHeight → double?
-
Custom max height
final
- maxWidth → double?
-
Custom max width
final
- minHeight → double?
-
Custom min height
final
- minWidth → double?
-
Custom min width
final
- padding → EdgeInsetsGeometry?
-
Padding for the timer container
final
- primaryColor → Color
-
Primary color for the timer
final
- progressBackgroundColor → Color?
-
Progress indicator background color (for circular style)
final
- progressStrokeWidth → double
-
Progress indicator stroke width (for circular style)
final
- progressValueColor → Color?
-
Progress indicator value color (for circular style)
final
- responsiveFontConfig → ResponsiveFontConfig?
-
Responsive font size configuration
final
- responsiveIconConfig → ResponsiveIconConfig?
-
Responsive icon size configuration
final
- responsivePaddingConfig → ResponsivePaddingConfig?
-
Responsive padding configuration
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondaryColor → Color?
-
Secondary color for the timer
final
- subtitleTextStyle → TextStyle?
-
Custom text style for the subtitle
final
- textColor → Color?
-
Text color for the timer
final
- textStyle → TextStyle?
-
Custom text style for the timer
final
- titleTextStyle → TextStyle?
-
Custom text style for the title (in detailed mode)
final
- useResponsiveSizing → bool
-
Whether to use responsive sizing (default: true)
final
- width → double?
-
Custom width
final
Methods
-
copyWith(
{Color? primaryColor, Color? secondaryColor, Color? backgroundColor, Color? textColor, Color? iconColor, Color? borderColor, double? borderRadius, double? borderWidth, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin, TextStyle? textStyle, TextStyle? titleTextStyle, TextStyle? subtitleTextStyle, List< BoxShadow> ? boxShadow, Gradient? gradient, double? progressStrokeWidth, Color? progressBackgroundColor, Color? progressValueColor, bool? useResponsiveSizing, ResponsiveFontConfig? responsiveFontConfig, ResponsivePaddingConfig? responsivePaddingConfig, ResponsiveIconConfig? responsiveIconConfig, CountdownAnimationConfig? animationConfig, CountdownCustomBuilderConfig? customBuilderConfig, CountdownAdvancedStyle? advancedStyle, Decoration? decoration, Decoration? foregroundDecoration, double? width, double? height, double? minWidth, double? minHeight, double? maxWidth, double? maxHeight}) → CountdownTheme - Creates 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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override