advance_expansion_tile 1.0.0 advance_expansion_tile: ^1.0.0 copied to clipboard
1. It allows you to manually collapse, exapnd or toggle expansion tile 2. It allows you to hide the default icon 3. It allows you to disable click of the exapnsion tile 4. It provides the onTap callba [...]
Advance Expansion Tile #
- It allows you to manually collapse, expand or toggle expansion tile
- It allows you to hide the default icon
- It allows you to disable click of the expansion tile
- It provides the onTap callback whenever the expansion tile gets clicked
Getting Started #
Exapnd, Collapse, Toggle Manually #
To do so, you need to create global key first.
final GlobalKey<ConfiguarableExpansionTileState> _globalKey = GlobalKey();
///To exapnd
_globalKey.currentState?.expand();
///To collapse
_globalKey.currentState?.collapse();
///To toggle
_globalKey.currentState?.toggle();
Properties #
/// use to hide the default trailing icon
bool hideIcon
///use to disable the click of the expansion tile
bool disabled
///use to listen click event once the expansion tile gets clicked.
VoidCallback onTap