AppExpansionTile class final
Tile expansível (cabeçalho clicável + corpo animado), sem Material.
O cabeçalho usa FlocksInteraction (hover/press/foco-Tab/anel + Enter/Space); o chevron gira via AppAnimatedRotation e o corpo abre/fecha via AppExpand — ambos passam por AppMotion (respeitam reduce-motion e o toggle global). O tooltip do chevron reusa AppTooltip. Cores 100% do tema.
AppExpansionTile(
title: 'Detalhes',
children: <Widget>[AppText('...')],
)
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- AppExpansionTile
Constructors
-
AppExpansionTile({required List<
Widget> children, required String title, String collapsedIconTooltip = 'Abrir', bool enabled = true, String expandedIconTooltip = 'Fechar', bool hoverEnabled = true, bool initiallyExpanded = false, ValueChanged<bool> ? onExpansionChanged, AppStyle? style, AppRadiusMode? radiusMode, BorderRadius? radius, Color? background, Key? key}) -
Cria um AppExpansionTile.
const
Properties
- background → Color?
-
Sobrescreve o fundo do card (quando o style preenche). Default: derivado
do estilo.
final
-
children
→ List<
Widget> -
Conteúdo exibido quando o tile está expandido.
final
- collapsedIconTooltip → String
-
Tooltip do ícone quando fechado.
final
- enabled → bool
-
Se o tile está habilitado para interação.
final
- expandedIconTooltip → String
-
Tooltip do ícone quando aberto.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hoverEnabled → bool
-
Se o realce de hover está habilitado.
final
- initiallyExpanded → bool
-
Se o tile inicia expandido.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onExpansionChanged
→ ValueChanged<
bool> ? -
Callback ao alternar a expansão.
final
- radius → BorderRadius?
-
Override cru do raio do card — vence radiusMode e o global.
final
- radiusMode → AppRadiusMode?
-
Sobrescreve o modo de forma só deste tile (vence o global
theme.radiusTheme.mode). Default do componente: AppRadiusMode.redondo.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → AppStyle?
-
Tratamento de container (borda/fundo/sombra) do eixo global AppStyle,
aplicado ao card inteiro (cabeçalho + corpo).
null(default) segue o globaltheme.styleTheme.style. Container ghost:filled/elevatedcaem emsurfaceContainer;outlinedfica transparente com bordaoutline.final - title → String
-
Título do cabeçalho.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< AppExpansionTile> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited