Expandable Card #

This is a Flutter Widget that makes it easy to build a page with a bottom Card that can be expanded on user drag.

How to use it #

Use ExpandableCardPage for the body of your Scaffold . This widget will take two attributes:

Widget page : which is the default page in the background

: which is the default page in the background ExpandableCard expandableCard : which is the bottom card itself. You can call the ExpandableCard constructor to build one.

ExpandableCard constructor has a few attributes:

EdgeInsetsGeometry padding : padding inside the card. Default value is EdgeInsets.all(15)

: padding inside the card. Default value is double minHeight : default height of the card when it's not expanded. Default value is 200

: default height of the card when it's not expanded. Default value is double maxHeight : height of the card when it's fully expanded. Default value is 500

: height of the card when it's fully expanded. Default value is bool hasShadow : determines whether the card has box shadow or not. Default is true

: determines whether the card has box shadow or not. Default is Color backgroundColor : background color of the card. Default is Colors.blueGrey

: background color of the card. Default is bool hasRoundedCorners : determines whether the card has rounded corners or not. Default is false

: determines whether the card has rounded corners or not. Default is Widget content : The actual content of the card