expandable_cardview 1.0.5 expandable_cardview: ^1.0.5 copied to clipboard
The ExpandableCard widget provides a customizable card with expandable sections, facilitating the display of detailed information in collapsible sections. Ideal for presenting complex content within a [...]
Expandable Card Widget Library #
Description #
The ExpandableCard
widget provides a customizable card with expandable sections, facilitating the display of detailed information in collapsible sections. Ideal for presenting complex content within a compact UI.
Add Dependency #
Untuk menggunakan expandable_cardview
, tambahkan dependensi ini pada file pubspec.yaml
Anda:
dependencies:
expandable_cardview: ^1.0.5
Import Library #
import 'package:expandable_cardview/expandable_cardview.dart';
Usage #
ExpandableCard(
title: 'Bebek Goreng',
deskripsi: 'Bebek Goreng pedas dan gurih',
button2Value: 'Konfirmasi',
sectionRowCount: 3,
sectionRowTitles: ['Ulasan', 'Pesanan', 'Ongkir'],
totalText: 3,
backgroundColor: Colors.white,
elevation: 4.0,
button2Elevation: 5.0,
button2Color: Colors.blue,
button1TextColor: Colors.black,
button2BorderRadius: 5.0,
cardBorderRadius: 10,
sectionRowData: {
'Ulasan': ['Rating bagus', 'Makanan sedap', 'Order lagi besok'],
'Pesanan': ['Jumbo', 'Pedas', 'Ga pake nasi'],
'Ongkir': ['Genuk', 'Jalan Mrican no 2', 'kodepos 0164'],
},
onPressedButton2: () {
// do something calling from custom method or action
},
)
Demos #
🚧 Maintainer #
Muhammad Yaasiin Hidayatulloh
📫 How to reach me: myaasiinh@gmail.com