FlenxButton class
Botão/link — como um ElevatedButton/TextButton. Aponta para href.
Tem hover predefinido (clareia + sobe levemente) ativado por padrão; é
só um parâmetro Dart (hover) — você nunca escreve CSS. O componente injeta
o :hover scoped por baixo (inline não faz :hover).
- Inheritance
-
- Object
- Component
- StatelessComponent
- FlenxButton
Constructors
- FlenxButton(String label, {required String href, FlenxButtonVariant variant = FlenxButtonVariant.primary, String? color, bool newTab = false, bool hover = true, FlenxAnimation? animation, int animationDelay = 0, int animationDuration = 600, Key? key})
-
const
Properties
- animation → FlenxAnimation?
-
Anima o botão com scroll-reveal.
null= sem animação.final - animationDelay → int
-
final
- animationDuration → int
-
final
- color → String?
-
Sobrescreve a cor de acento usada pelo variant (ghost/soft usam primary por padrão).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hover → bool
-
Efeito de hover predefinido.
falsedesliga.final - href → String
-
final
- key → Key?
-
Controls how one component replaces another component in the tree.
finalinherited
- label → String
-
final
- newTab → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- variant → FlenxButtonVariant
-
final
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