DivStyle class

Define o estilo do widget inspirado em CSS.

Constructors

DivStyle({Widget? child, Clip? clipBehavior, double? height, double? width, Color? color, DecorationImage? backgroundImage, BoxBorder? border, BorderRadiusGeometry? borderRadius, List<BoxShadow>? boxShadow, Gradient? gradient, BlendMode? backgroundBlendMode, BoxShape? shape, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, AlignmentGeometry? alignment, Color? splashColor, Duration? animationDuration, DivStyle? hoverStyle, DivStyle? pressedStyle, DivTextStyle? textStyle})
const

Properties

alignment → AlignmentGeometry?
final
animationDuration → Duration?
Tempo de animação em transições (Exemplo: transição do base para o hover)
final
backgroundBlendMode → BlendMode?
final
backgroundImage → DecorationImage?
final
border → BoxBorder?
final
borderRadius → BorderRadiusGeometry?
final
boxShadow → List<BoxShadow>?
final
child → Widget?
final
clipBehavior → Clip?
final
color → Color?
final
gradient → Gradient?
final
hashCode → int
The hash code for this object.
no setterinherited
height → double?
final
hoverStyle → DivStyle?
Estilo a ser aplicado quando o mouse estiver sobre o widget (Hover)
final
margin → EdgeInsetsGeometry?
final
padding → EdgeInsetsGeometry?
final
pressedStyle → DivStyle?
Estilo a ser aplicado quando o widget estiver sendo pressionado (Clicado/Tapped)
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shape → BoxShape?
final
splashColor → Color?
final
textStyle → DivTextStyle?
Estilo de texto propagado via cascata para todos os DivText descendentes.
final
width → double?
final

Methods

merge(DivStyle? other) → DivStyle
Mescla estilos. Propriedades não nulas em other substituem as propriedades atuais.
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