selectable_expansion_tile 0.0.1
selectable_expansion_tile: ^0.0.1 copied to clipboard
Custom Selectable ExpansionTile Flutter package
Selectable Expandion Tile #
A custom Flutter plugin for a selectable ExpansionTile with properties for a dynamic header, body, and ExpansionController, which ensures that expanding one tile collapses the others, providing a grouped behavior for multiple tiles. This allows for a synchronized accordion-style UI where only one tile remains expanded at any given time.
Installation #
- Add the latest version of package to your pubspec.yaml (and run
dart pub get
):
dependencies:
selectable_expansion_tile: ^0.0.1
- Import the package and use it in your Flutter App.
import 'package:selectable_expansion_tile/selectable_expansion_tile.dart';
Example #
There properties which are required:
- header
- body
- onChanged [call back function with value when your tile is getting expanded or collapsed]
- controller [you can manually expand and collapse just by using controller.expand and controller.collapse.]
other than that toggle fuction is there.
For multiple Selectable expansion tile
- value
- group value
[when value and group value become same expansion tile gets expanded automatically and others gets collapsed]
|
![]() |
Next Goals #
-
Add custom animation on expand and collapse.
-
body widget more customisation.
-
Add more functionalities to the package.