expand 1.1.1 copy "expand: ^1.1.1" to clipboard
expand: ^1.1.1 copied to clipboard

A package designed to help you easily create sleek and fast expandable widgets.

Expand #

GitHub stars Package: expand Language: Dart License: MIT

expand is a Flutter package designed to help creating sleek, fast and simple expandable widgets, using minimum code.

Demo Gif

Installation #

To use this package, add expand as a dependency using:

flutter pub add expand

Getting started #

Wrap any list of expandable widgets in a ExpandableProvider, and you are done.

Usage #

Here is a basic example of how to use ExpandableTile:

ExpandableProvider(
child: ListView(
  children: [
    ExpandableTile(
      title: const Text('Tile 1'),
      detailsBuilder: (context) => Container(height: 200),
    ),
    ExpandableTile(
      title: const Text('Tile 2'),
      detailsBuilder: (context) => Container(height: 200),
    ),
  ],
),
),

The use of ExpandableProvider can be skipped using an ExpandableController that can be provided manually.

Key components #

  • ExpandableProvider + ExpandableController: the state providers for expansion cards
  • ExpandableCard: The base of all expandable widgets
  • ExpandableTile: An ListTile with expandable details

For further details, visit the documentation.

2
likes
160
pub points
47%
popularity
screenshot

Publisher

unverified uploader

A package designed to help you easily create sleek and fast expandable widgets.

Repository (GitHub)
View/report issues

Topics

#expandable #widget #material

Documentation

API reference

Funding

Consider supporting this project:

github.com
buymeacoffee.com

License

MIT (license)

Dependencies

flutter

More

Packages that depend on expand