responsive_priority_list

Creator: coderz1093

Last updated:

0 purchases

responsive_priority_list Image
responsive_priority_list Images
Add to Cart

Description:

responsive priority list

Responsive Priority List #
The purpose of this widget is to have responsive Rows & Columns, that hide their children depending on size and prioritry.
This can be useful for data views, where data can be hidden, if there is too little size left.
The advantage of this widget is that the size of all children is fixed, meaning that they are not squashed together but instead hidden, if not enough size is available.
Due to the priority parameter, one can decide the exact order in which the children are hidden if the space is reduced, from least to most important.
https://github.com/Jaaco/responsive_priority_list/assets/19706843/0153bae4-dd15-49e3-a787-00221ae83782
Usage #
Use either the .column or .row constructor.
Wrap your widgets in a PriorityWidget, where the sizeInMainAxis is the size in pixels along the main axis of the chosen widget.
The ResponsivePriorityList will try to fit all children, but if constraints along the main axis are too small, it will omit widgets based on the following rules.
Rules #
The algorithm that decides which children are rendered has few rules.
Priority is measured from lowest to highest integers (0 has higher priority than 1).
If two widgets have the same priority, the one earlier in the list takes precedence.
If a widget has priority but is too large for the available size, the next widget in the priority list is chosen.
By definition, if all widgets are too large for the available size, no widgets will be rendered.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.

Related Products

More From This Creator