Skip to content

The ExpandableCard widget provides a customizable card with expandable sections, facilitating the display of detailed information in collapsible sections.

License

Notifications You must be signed in to change notification settings

myaasiinh/expandable_cardview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Expandable Card Widget Library

expandable card

Description

The ExpandableCard widget provides a customizable card with expandable sections, facilitating the display of detailed information in collapsible sections.

Add Dependency

To use expandable_cardview, add this dependency to your pubspec.yaml file:

dependencies:
  expandable_cardview: ^1.1.0

Import Library

import 'package:expandable_cardview/expandable_cardview.dart';

Usage

ExpandableCard(
  title: 'Fried Rice',
  description: 'Confirmed Order',
  button2Value: 'Buy Now',
  sectionRowCount: 3,
  sectionRowTitles: const ['Review', 'Order', 'Shipping'],
  totalText: 3,
  backgroundColor: Colors.white,
  elevation: 4.0,
  button2Elevation: 5.0,
  button2Color: Colors.blue,
  button1TextColor: Colors.black,
  button2BorderRadius: 5.0,
  cardBorderRadius: 10,
  sectionRowData: const {
  'Review': ['Good portion size','Taste good','Overall good'],
  'Order': ['Fried Rice', '1', 'RM 10.00'],
  'Shipping': ['Street 1', 'City 1', '12345'],
  },
  textButtonActionFirst: 'Close',
  textButtonActionSecond: 'Details',
  onPressedButton2: () {
      //do something
  },
);

Demos

demo.nested.expand.card.mp4

🚧 Maintainer

GitHub Ko-fi

Muhammad Yaasiin Hidayatulloh
📫 How to reach me: myaasiinh@gmail.com

About

The ExpandableCard widget provides a customizable card with expandable sections, facilitating the display of detailed information in collapsible sections.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages