expansion_card 0.1.0

Flutter Android iOS web

Expansion Card that expands on click with full body cover background that also expands ontap. This widget is highly customizable with smooth animations.

Expansion Card #

Open Source Love

This package provides an easy implementation of a Expansion type card. You can also add gif or image at the background which expands with the card.

##Screenshot

How to use #

import 'package:expansion_card/expansion_card.dart';

Center(
            child: ExpansionCard(
              title: Container(
                child: Column(
                  crossAxisAlignment: CrossAxisAlignment.start,
                  children: <Widget>[
                    Text(
                      "Header",
                    ),
                    Text(
                      "Sub",
                    ),
                  ],
                ),
              ),
              children: <Widget>[
                Container(
                  margin: EdgeInsets.symmetric(horizontal: 7),
                  child: Text("Content goes over here !",
                ),
                )
              ],
            ));

Custom Usage #

There are several options that allow for more control:

PropertiesDescription
backgroundProvides background image
borderRadiusProvides radius to the card
leadingDefine an action after slidding a button
gif(String) address of your gif file ot image file for background
onExpansionChangedWhen the tile starts expanding, this function is called with the value true. When the tile starts collapsing, this function is called with the value false.
trailingA widget to display instead of a rotating arrow icon
initiallyExpandedSpecifies if the list tile is initially expanded (true) or collapsed (false, the default)


You can go here for the example

👍 Contribution #

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -m 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
86
likes
110
pub points
90%
popularity

Expansion Card that expands on click with full body cover background that also expands ontap. This widget is highly customizable with smooth animations.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

flutterglutter@gmail.com

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on expansion_card