ExpandableCard class

A widget that displays an expandable card view with title, description, sections, and buttons.

Inheritance

Constructors

ExpandableCard({Key? key, String? title, String? description, String? button1Value, String? button2Value, required String textButtonActionFirst, required String textButtonActionSecond, required int sectionRowCount, required List<String> sectionRowTitles, int? totalText, Color? backgroundColor, double? elevation, double? button2Elevation, Color? button2Color, VoidCallback? onPressedButton2, Color? button1TextColor, double? button1BorderRadius, double? button2BorderRadius, double? cardBorderRadius, EdgeInsets? padding, required Map<String, List<String>> sectionRowData})
Creates an expandable card view.
const

Properties

backgroundColor Color?
The background color of the card.
final
button1BorderRadius double?
The border radius of button 1.
final
button1TextColor Color?
The text color of button 1.
final
button1Value String?
The label for button 1.
final
button2BorderRadius double?
The border radius of button 2.
final
button2Color Color?
The color of button 2.
final
button2Elevation double?
The elevation of button 2.
final
button2Value String?
The label for button 2.
final
cardBorderRadius double?
The border radius of the card.
final
description String?
The description of the card.
final
elevation double?
The elevation of the card.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onPressedButton2 VoidCallback?
Callback function when button2 is pressed.
final
padding EdgeInsets?
The padding of the card.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sectionRowCount int
The number of section rows.
final
sectionRowData Map<String, List<String>>
The data for each section row.
final
sectionRowTitles List<String>
The titles for each section row.
final
textButtonActionFirst String
The text for the 'Close' button.
final
textButtonActionSecond String
The text for the 'Details' button.
final
title String?
The title of the card.
final
totalText int?
The total text.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _ExpandableCardState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited