v1.0.1
expansion_card
एक कस्टमाइज़ेबल फ्लटर एक्सपेंशन कार्ड जिसमें वैकल्पिक एनीमेटेड इमेज बैकग्राउंड हो सकता है।
300लाइक 13330-दिन डाउनलोड150Pub अंक
AndroidiOSWebmacOSWindowsLinux
एक फ्लटर विजेट जहां कार्ड टैप पर फैलता है।
{"sdk":"flutter"}{"sdk":"flutter"}यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
Open Source Love
This package provides an easy implementation of a Expansion type card where you can also add gif at the background.
https://github.com/anirudhsharma392/Expansion-Card/blob/master/screenshots/expansion_card.gif?raw=true
import 'package:expansion_card/expansion_card.dart';
Center(
child: ExpansionCard(
background: Image.asset("assets/animations/sleep.gif"),
title: Container(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Text(
"Header",
style: TextStyle(
fontFamily: 'BalooBhai',
fontSize: 30,
color: Colors.white,
),
),
Text(
"Sub",
style: TextStyle(
fontFamily: 'BalooBhai', fontSize: 20, color: Colors.white),
),
],
),
),
children: <Widget>[
Container(
margin: EdgeInsets.symmetric(horizontal: 7),
child: Text("Content goes over here !",
style: TextStyle(
fontFamily: 'BalooBhai',
fontSize: 20,
color: Colors.white)),
)
],
));
There are several options that allow for more control:
| Properties | Description |
|---|---|
leading |
Define an action after slidding a button |
background |
provide any image asset file (supports gif also) |
onExpansionChanged |
When 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. |
trailing |
A widget to display instead of a rotating arrow icon |
initiallyExpanded |
Specifies if the list tile is initially expanded (true) or collapsed (false, the default) |