Categories
Categories
Mouli
by on May 10, 2021
57 views
Flutter ExpansionTile - Expandable Listview
In Many Applications, there is a requirement like display expand and collapse items.

We have two ways of creating an expandable view in flutter.

ExpansionTile
ExpansionPanelList & ExpansionPanel



ExpansionTile:

It is a simple and useful widget. This widget lets you create a collapse or expansion view with features similar to ListTile. It is like a ListTile which will expand on tapping the title.

ExpansionTile has the following attributes similar to List Tile:

Properties:
backgroundColor: set the background color to the widget .

children: This property is used for add child widget

initiallyExpanded: if we set true, child will expands default

onExpansionChanged: To handle the expansion event

title: set the header of the item
Download Source code for Flutter Expandable LIstview
Posted in: USA, Technology, games
Be the first person to like this.