BrickListItem class
A BrickListItem is created on the analogy of a wall and bricks. The container
that holds all the widgets is called a 'wall' and the individual widgets
within the wall are called as 'bricks'. When bricks are added to the wall they
automatically resize and position themselves to fit the wall. It also allows
for nesting, i.e. you can nest BrickListItems inside another BrickListItem.
_widgets
are the bricks to be added to the wall, while as _wallColor
and
_brickColor
specify the color of the wall and the widgets i.e. bricks
within the wall, respectively. You can wrap BrickListItem within the
corresponding widget which handles user interaction, to support interaction
for the BrickListItem.
Constructors
-
BrickListItem({List<
Widget> widgets, Color wallColor: Colors.black, Color brickColor: Colors.red }) - Constructs a BrickListItem with default settings.
-
BrickListItem.forest({List<
Widget> widgets }) -
Constructs a BrickListItem with black
_wallColor
and brown_brickColor
. -
BrickListItem.home({List<
Widget> widgets, Color wallColor: Colors.black, Color brickColor: Colors.red }) -
Constructs a BrickListItem with black
_wallColor
and red_brickColor
. -
BrickListItem.mud({List<
Widget> widgets }) -
Constructs a BrickListItem with green
_wallColor
and brown_brickColor
. -
BrickListItem.ocean({List<
Widget> widgets }) -
Constructs a BrickListItem with blue
_wallColor
and white_brickColor
. -
BrickListItem.sky({List<
Widget> widgets }) -
Constructs a BrickListItem with lightBlue
_wallColor
and lightBlueAccent_brickColor
. -
BrickListItem.transparent({List<
Widget> widgets }) -
Constructs a BrickListItem with transparent
_wallColor
and_brickColor
.
Properties
Methods
-
build(
BuildContext context) → Widget - Describes the part of the user interface represented by this widget. [...]
-
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.debug }) → String -
Returns 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 ==(
dynamic other) → bool -
The equality operator. [...]
inherited