flexible_expansion_list 0.0.3 copy "flexible_expansion_list: ^0.0.3" to clipboard
flexible_expansion_list: ^0.0.3 copied to clipboard

A Flutter widget provide expansion lists in a flexible way.

Flutter Expansion List #

A Flutter package to provide Expandable List with customizable animation and List items.

Example Project #

There is a good example project in the example folder.

Demo #

expansion_list

Usage #


       FlexibleExpansionList(
        itemCount: data!.length,
        headerBuilder: (BuildContext context, int index, bool isExpanded) {
          return ListTile(
            title: Text(isExpanded ? 'Collapse' : 'Expand'),
          );
        },
        fixedItemBuilder: (BuildContext context, int index) {
          return ListTile(
            title: Text(data![index].title),
            subtitle: Text(data![index].subtitle),
          );
        },
        expandedItemBuilder: (BuildContext context, int index) {
          return Padding(
            padding: const EdgeInsets.symmetric(horizontal: 8),
            child: ListTile(
              title: Text(data![index].fields.title),
              subtitle: Text(data![index].fields.value),
            ),
          );
        }
      ),

Properties #

Property Description Default
required int itemCount Total number of fixed items. required
required IndexedWidgetBuilder fixedItemBuilder Creates fixed list item widgets. required
required IndexedWidgetBuilder expandedItemBuilder Create The widget(s) that should be displayed when each item is expanded. required
IndexedHeaderWidgetBuilder headerBuilder Creates The widget that should be shown as the header for the whole list. null
Animation animation Expansion and collapse animation with a value of type double. CurvedAnimation
AnimationController controller Expansion and collapse animation controller. default controller with 300 milliseconds duration
5
likes
150
points
38
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter widget provide expansion lists in a flexible way.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flexible_expansion_list