simple_expander 0.1.10 copy "simple_expander: ^0.1.10" to clipboard
simple_expander: ^0.1.10 copied to clipboard

This package is composed of a simple expansion tile that I made myself because the existing ones didn't satisfied me for a specific project I had

A very simple Expansion Tile widget

Features #

For a specific project I had, I wasn't satisfied with the buil-in Expansion Tile widget, nor with any I could find on pub dev, so I made my own !

Here are the options you can customize :

  • header color
  • tile color
  • header title
  • tile title
  • tile subtitle
  • header trailing widget
  • tile trailing widget
  • overall animation duration
  • "overtile" duration animation
  • base height (for header and tiles)
  • base curvature (for both again)
  • longpress on tiles function (allows to enter a popup menu function)

Look at this beauty : (I ain't buyest lmao)

Getting started #

If you want to use simple_expander, you can either enter this command into your console :

flutter pub add simple_expander

Or add this line into your project's dependencies :

dependencies:
  simple_expander: ^0.1.7

Usage #

const example = SimpleExpander(
    headerString: "Header title",
    tiles: moreValues.map((oneSimpleObject) => SimpleExpanderTile(
        title: oneSimpleObject.name,
        subtitle: oneSimpleObject.secondName,
        onTap: () async {
          log('onTap function for simple_expander_tile with id : ${oneSimpleObject.id}');
        }
    )).toList(),
);

// WITH "oneSimpleObject" BEING INSTANCES YOU LOOP OVER TO FEED YOUR TILES

Additional information #

Reality check : I'm still an amateur in the matter of creating flutter packages, and it shows. This package has flaws and if you use it, feel free to report them on the public github repo. It is not super customizable, and I might try to improve this in the future (maybe).

2
likes
150
points
83
downloads

Publisher

verified publisherlaurentstienon.com

Weekly Downloads

This package is composed of a simple expansion tile that I made myself because the existing ones didn't satisfied me for a specific project I had

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT-0 (license)

Dependencies

flutter, font_awesome_flutter

More

Packages that depend on simple_expander