slick_list_items library
Classes
-
BrickListItem
-
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.
-
FlatListItem
-
A FlatListItem is typically added to a ListView to display textual information.
FlatListItem is divided into three columns, wherein, the first one on the left
displays an icon, second and the third column each have 2 rows, wherein,
the first row is typically used to display the headings to represent the
data that is displayed in the second row. The container that holds all these
columns and items is called as a 'holder' in a FlatListItem, whose dimensions
are calculated automatically based on the dimensions of the user's device
screen and the ScalePreset chosen by the user. Also, based on the ScalePreset
chosen, all the items of the holder are scaled accordingly.
-
InfoListItem
-
An InfoListItem is a StatelessWidget which is typically used to display
information within a ListView. An InfoListItem consists of a main container
called 'holder' which holds every other component together within an
InfoListItem. In terms of components, it consists of an resizable icon on
the left, and title, subTitle, and Footer text in top-down order on the
right. Depending on the size of the icon on the left other components
automatically resize themselves to fit the screen. Both the
titleText
and
footerText
can display information upto 2 lines, after which elipsis are
displayed for the rest of the text, if any. The subTitleText
can display
unlimited number of lines of text, depending on the user requirement. Color,
fontFamily whereever relevant of each component can be customized, except
for other properties such as fontSize, fontWeight, etc. which are built it,
and hence cannot be altered.
Enums
-
ScalePreset
-
A set of predefined presets to control the size of the FlatListItem. Based
on the preset selected, the height of the holder and the size of the items
it contains is scaled accordingly. A preset calculates the height of the holder
based on the device orientation and divided by corresponding factor. Following
are the factors used in each preset and depending on the device orientation:-
minimal : 14.0 (P) and 7.0 (L), small : 10.0 (P) and 7.0 (L), normal :
9.0 (P) and 6.0 (L), large 6.0 (P) and 4.0 (L), and finally gigantic :
3.0 (P/L).