PueBody class Null safety

This widget is intended to be used in the body parameter of the PuePaqe or SoloPuePage widgets. It provides some extra functionality as opposed to just putting your own widget in the body section of the PuePage (which is completely possible if you prefer). You can easily turn the body into a listview, and fade the top and bottom of the body out. It also has gutters so that the header, body and footer can all have the same horizontal padding.

Inheritance

Constructors

PueBody({required Widget child, bool listView = false, bool fadeTop = false, bool fadeBottom = false, double? gutters})

Properties

child Widget
final
fadeBottom bool
If this is true, the bottom of the body will fade in and out. This is useful if you have a listview and you dont want to abrupty chop off the bottom of the listview when scrolling
final
fadeTop bool
If this is true, the top of the body will fade in and out. This is useful if you have a listview and you dont want to abrupty chop off the top of the listview when scrolling
final
gutters double?
The gutters (or horizontal padding) that exists on the left and right side of the footer. By default, it will use the gutters that are defined in the parent Pueprint widget or PueProvider
final
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
key Key?
Controls how one widget replaces another widget in the tree. [...]
final, inherited
listView bool
If you want to have the body in a ListView. This is particularily useful for pages with input that bring the keyboard up. The listview will make sure that everything on the page is visible even when the keyboard is in view so that there are no overflow errors.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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. [...]
@nonVirtual, inherited