LedgerSheetShell class

A modal sheet's card, drawn in place: on a phone it rises off the bottom edge, its top corners at 6 (--r-sheet), the grip over its head; at desktop width it stands centred, 480 wide, every corner at 6 and no grip. Its face is the raised paper with the sheet's shadow. The head (LedgerSheetHead: the title and the ringed close over the ink rule), then the body's children 8 under it, then the foot 20 under that: one button takes the whole width, two share it 12 apart. The card scrolls once its parts outgrow 90% of the screen (84% at desktop width). For a sheet composed in place; LedgerSheet.show presents this same widget, so the two never drift apart.

LedgerSheetShell(title: 'Add money', foot: [LedgerButton.filled('Confirm', onPressed: add)], children: [amount, from])
Inheritance

Constructors

LedgerSheetShell({required String title, required List<Widget> children, List<Widget> foot = const [], bool showClose = true, VoidCallback? onClose, Key? closeKey, bool useSafeArea = false, Key? key})
A sheet's card titled title, holding children.
const

Properties

children → List<Widget>
The body's parts, in order.
final
closeKey → Key?
A key for the close button, where a tap lands.
final
The acts at the card's foot: one takes the whole width, two share it.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onClose → VoidCallback?
What the close does; null dismisses the sheet's route.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showClose → bool
Whether the head carries the close (a dialog that closes by its own Cancel leaves it out).
final
title → String
The head's title.
final
useSafeArea → bool
Apply the bottom safe-area inset inside the card (a phone's sheet).
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.
override
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

around(BuildContext context) → bool
Whether context stands on a sheet's card.
footOf(List<Widget> acts) → Widget
The foot's acts laid out as the source's: each takes an even share of the card's width, 12 apart (the card is their measure, so a desktop dialog's two acts share its 440 as a phone's share its width, and a phone's one act spans its sheet). From 600 wide each act keeps to 320 at most (a control's measure there), the row on the card's trailing end with the confirm last: a dialog's lone act, and a wide card's acts (a tablet's bottom sheet), stand at its end, not across it.
padding(BuildContext context) → EdgeInsets
The room inside a card: 10 above, 20 at the sides and 28 under on a phone; 24 above, 28 at the sides and under at desktop width.