LaunchStyle class

Styling options for Launchify widgets to customize their visual appearance.

Provides a comprehensive set of properties to control colors, padding, typography, and structural elements like borders and height.

Constructors

LaunchStyle({Color? backgroundColor, Color? textColor, Color? iconColor, double? borderRadius, EdgeInsetsGeometry? padding, double? fontSize, FontWeight? fontWeight, double? height, double? iconWidth, double? iconHeight, BoxFit? iconFit, bool isOutlined = false, double? borderWidth, Color? borderColor, bool? showUnderline, LaunchThemePreset? themePreset, bool? isAnimated, Duration? animationDuration})
Creates a LaunchStyle with customizable properties.
const
LaunchStyle.defaultActionButton(BuildContext context)
Factory constant for default styling of an ActionButton.
factory
LaunchStyle.defaultLinkRow(BuildContext context)
Factory constant for default styling of a LinkRow.
factory

Properties

animationDuration → Duration?
The duration of the animation if isAnimated is true.
final
backgroundColor → Color?
The background color of the button or row.
final
borderColor → Color?
The color of the border when isOutlined is true.
final
borderRadius → double?
The border radius for rounded corners.
final
borderWidth → double?
The width of the border when isOutlined is true.
final
fontSize → double?
The font size of the text.
final
fontWeight → FontWeight?
The font weight of the text.
final
hashCode → int
The hash code for this object.
no setteroverride
height → double?
The height of the widget (primarily used for ActionButton).
final
iconColor → Color?
The color applied to the icon.
final
iconFit → BoxFit?
How the icon/image should be inscribed into the box.
final
iconHeight → double?
The height of the icon. If null, uses a size derived from fontSize.
final
iconWidth → double?
The width of the icon. If null, uses a size derived from fontSize.
final
isAnimated → bool?
Whether the button should have an animation.
final
isOutlined → bool
Whether the button should be rendered in an outlined style.
final
padding → EdgeInsetsGeometry?
The internal padding for the widget.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showUnderline → bool?
Whether to show an underline beneath the link text.
final
textColor → Color?
The text color of the label or visible text.
final
themePreset → LaunchThemePreset?
Predefined theme preset to apply.
final

Methods

applyThemePreset(BuildContext context, LaunchThemePreset preset) → LaunchStyle
Applies a LaunchThemePreset to the current style, overriding color-related properties.
copyWith({Color? backgroundColor, Color? textColor, Color? iconColor, double? borderRadius, EdgeInsetsGeometry? padding, double? fontSize, FontWeight? fontWeight, double? height, double? iconWidth, double? iconHeight, BoxFit? iconFit, bool? isOutlined, double? borderWidth, Color? borderColor, bool? showUnderline, LaunchThemePreset? themePreset, bool? isAnimated, Duration? animationDuration}) → LaunchStyle
Creates a copy of this style but 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.
override