ExpandedTile class
An Expansion tile similar to the list tile supports leading widget, Trailing widget and programatic control with content expansion animation.
{@tool snippet}
class _ExampleState extends State<Example> {
late ExpandedTileController _controller;
void initState() {
_controller = ExpandedTileController();
super.initState();
}
ExpandedTile(
controller: _controller,
onTap: (){
},
onLongTap: (){
},
theme: ExpandedTileThemeData(),
title:
content:
...
)
{@end-tool}
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ExpandedTile
Constructors
- ExpandedTile({dynamic key, Widget? leading, required Widget title, Widget? trailing = const Icon(Icons.chevron_right), double? trailingRotation = 90, required Widget content, double? contentseparator = 6.0, required ExpandedTileController controller, bool enabled = true, ExpandedTileThemeData? theme = const ExpandedTileThemeData(), bool? disableAnimation = false, Duration? expansionDuration = const Duration(milliseconds: 200), Curve? expansionAnimationCurve = Curves.ease, VoidCallback? onTap, VoidCallback? onLongTap})
-
const
Properties
- content → Widget
-
/? Content
final
- contentseparator → double?
-
final
- controller → ExpandedTileController
-
final
- disableAnimation → bool?
-
final
- enabled → bool
-
/? Misc
final
- expansionAnimationCurve → Curve?
-
final
- expansionDuration → Duration?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- leading → Widget?
-
/? Header
final
- onLongTap → VoidCallback?
-
final
- onTap → VoidCallback?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- theme → ExpandedTileThemeData?
-
final
- title → Widget
-
final
- trailing → Widget?
-
final
- trailingRotation → double?
-
final
Methods
-
copyWith(
{Widget? leading, Widget? title, Widget? trailing, double? trailingRotation, Widget? content, double? contentseparator, bool? enabled, ExpandedTileThemeData? theme, ExpandedTileController? controller, bool? disableAnimation, Curve? expansionAnimationCurve, Duration? expansionDuration, VoidCallback? onTap, VoidCallback? onLongTap}) → ExpandedTile - Returns a new ExpandedTile widget with the same arguments unless stated otherwise.
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _ExpandedTileState -
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}) → 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