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 device screen and the ScalePreset chosen by the user. Also, based on the ScalePreset chosen, all the items of the holder are scaled accordingly. It is important to know that if a FlatListItem is added to a ListView, the indexInList field is typically used to hold its index in the ListView to which it is added, so that it becomes possible to query a FlatListItem when added to ListView to get its position within the ListView.

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).

Typedefs

OnItemTap({BuildContext context, int tappedAt }) → dynamic
Implementation that must be provided by the user, for what should happen when a FlatListItem is tapped. Although, a default implementation is provided which simply prints the message, that a user implementation is required.