FlenxSection class

Seção da página — uma faixa com espaçamento vertical e um contêiner central de largura máxima (como um bloco de tela). Estilo por parâmetros; sem CSS.

Com animation, o filho inteiro entra com scroll-reveal. Com backgroundImage, a imagem aparece atrás do conteúdo com backgroundImageOpacity. O parâmetro background (cor/gradiente) fica como overlay acima da imagem.

Inheritance

Constructors

FlenxSection({required Component child, String? background, String? backgroundImage, double backgroundImageOpacity = 0.3, double paddingY = 72, double maxWidthPx = 1120, String? id, FlenxAnimation? animation, int animationDelay = 0, int animationDuration = 600, Key? key})
const

Properties

animation FlenxAnimation?
Tipo de animação aplicada ao conteúdo da seção. null = sem animação.
final
animationDelay int
Atraso antes da animação (ms).
final
animationDuration int
Duração da animação (ms).
final
background String?
Cor/gradiente de fundo (hex ou valor CSS). Quando há backgroundImage, atua como overlay sobre a imagem.
final
backgroundImage String?
URL da imagem de fundo (ex.: '/assets/bg.jpg').
final
backgroundImageOpacity double
Opacidade da imagem de fundo — de 0.0 (invisível) a 1.0 (opaca).
final
child Component
final
hashCode int
The hash code for this object.
no setterinherited
id String?
final
key Key?
Controls how one component replaces another component in the tree.
finalinherited
maxWidthPx double
final
paddingY double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(BuildContext context) Component
Describes the part of the user interface represented by this component.
override
createElement() Element
Creates a StatelessElement to manage this component's location in the tree.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldRebuild(covariant Component newComponent) bool
Implement this method to determine whether a rebuild can be skipped.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited