BankTransactionDetailSheet class
Full-detail bottom sheet for a single transaction.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- BankTransactionDetailSheet
Constructors
- BankTransactionDetailSheet({required Transaction transaction, Key? key, Widget? mapPreview, VoidCallback? onDispute, Widget? header, EdgeInsetsGeometry? padding, BorderRadius? radius, Color? backgroundColor, Color? handleColor, Color? avatarBackgroundColor, Color? accentColor, TextStyle? titleStyle, TextStyle? amountStyle, double? maxHeightFraction, String dateLabel = 'Date', String categoryLabel = 'Category', String statusRowLabel = 'Status', String referenceLabel = 'Reference', String noteLabel = 'Note', String paidByLabel = 'Paid by', String categoryBreakdownLabel = 'Category Breakdown', String categoryLabelBuilder(TransactionCategory)?, IconData? disputeIcon, IconData? copyIcon})
-
const
Properties
- accentColor → Color?
-
Overrides the primary accents (avatar icon, share action).
Defaults to the theme primary.
final
- amountStyle → TextStyle?
-
Merged over the computed hero amount style.
final
- avatarBackgroundColor → Color?
-
Overrides the avatar background. Defaults to the theme surfaceVariant.
final
- backgroundColor → Color?
-
Overrides the sheet background. Defaults to the theme surface.
final
- categoryBreakdownLabel → String
-
Overrides the splits section heading. Defaults to
'Category Breakdown'.
final
- categoryLabel → String
-
Overrides the category row label. Defaults to 'Category'.
final
- categoryLabelBuilder → String Function(TransactionCategory)?
-
Overrides the category display name. Defaults to built-in
English labels.
final
- copyIcon → IconData?
-
Overrides the copy glyph on copyable rows. Defaults to
BankIcons.copy.
final
- dateLabel → String
-
Overrides the date row label. Defaults to 'Date'.
final
- disputeIcon → IconData?
-
Overrides the dispute action glyph. Defaults to BankIcons.dispute.
final
- handleColor → Color?
-
Overrides the drag handle color. Defaults to the theme outline.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- header → Widget?
-
Replaces the avatar, merchant name, and amount header when provided.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- mapPreview → Widget?
-
Optional map widget supplied by the host app (e.g. a Google Maps snippet).
final
- maxHeightFraction → double?
-
Overrides the max sheet height as a screen fraction. Defaults to
0.92.
final
- noteLabel → String
-
Overrides the note row label. Defaults to 'Note'.
final
- onDispute → VoidCallback?
-
final
-
final
- padding → EdgeInsetsGeometry?
-
Overrides the scrollable content padding. Defaults to
BankTokens.space4 plus the bottom safe area inset.
final
- paidByLabel → String
-
Overrides the spender row label. Defaults to 'Paid by'.
final
- radius → BorderRadius?
-
Overrides the sheet corner radius. Defaults to the theme sheetRadius.
final
- referenceLabel → String
-
Overrides the reference row label. Defaults to 'Reference'.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
Overrides the share action glyph. Defaults to BankIcons.share.
final
- statusRowLabel → String
-
Overrides the status row label. Defaults to 'Status'.
final
- titleStyle → TextStyle?
-
Merged over the merchant name style (BankTokens.headlineSmall).
final
- transaction → Transaction
-
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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, int wrapWidth = 65}) → 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
Static Methods
-
show(
BuildContext context, {required Transaction transaction, Widget? mapPreview, VoidCallback? onDispute, }) → Future< void> - Convenience helper to push the sheet.