simple_expander

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

simple expander

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
copied to clipboard
Or add this line into your project's dependencies :
dependencies:
simple_expander: ^0.1.7
copied to clipboard
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
copied to clipboard
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).

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.

Related Products

More From This Creator