ScrollableList class
A wrapper around ListView with Eufemia-specific customizations.
- Inheritance
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- ScrollableList
Constructors
-
ScrollableList({Key key, List<
Widget> children, bool shrinkWrap: false, bool showBorders: true, ScrollPhysics physics, bool addBottomBorder: true, Widget title, ScrollController controller, bool adaptive: false, int crossAxisCount: 2, double gridChildAspectRatio, EufemiaSpace spaceBetween, EufemiaInsets padding, Axis scrollDirection: Axis.vertical}) -
const
Properties
- adaptive → bool
-
If the list should become a grid on wider devices.
final
- addBottomBorder → bool
-
If a bottom border should be added to the end of the list.
final
-
children
→ List<
Widget> -
The widgets below this widget in the tree. [...]
final
- controller → ScrollController
-
The optional ScrollController to control the ListView with.
final
- crossAxisCount → int
-
If adaptive is true, this controls the max amount of children on
the cross axis.
final
- gridChildAspectRatio → double
-
If adaptive is true, this controls the aspect ratio of the grid's children.
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
- padding → EufemiaInsets
-
An immutable set of offsets in each of the four cardinal directions. [...]
final
- physics → ScrollPhysics
-
Which ScrollPhysics to use for the ListView.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- scrollDirection → Axis
-
The two cardinal directions in two dimensions. The axis is always relative to the current coordinate space.
This means, for example, that a horizontal axis might actually be diagonally from top right to bottom left,
due to some local Transform applied to the scene.
final
- showBorders → bool
-
If the children should have borders between them.
final
- shrinkWrap → bool
-
If the ListView should be shrink-wrapped and not expand.
final
- spaceBetween → EufemiaSpace
-
EufemiaSpace to insert between each child.
final
- title → Widget
-
A label to display above the list.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget. [...]
override
-
buildGridView(
BuildContext context) → Widget -
buildListView(
BuildContext context) → 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.info}) → 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 ==(
Object other) → bool -
The equality operator. [...]
@nonVirtual, inherited