sunny_list/sunny_list_base library

Classes

SunnyList<T>
A base class widget that dynamically responds to changes in a list or map
SunnyListBaseState<T>
SunnyListController<T>
Allows customizable control of the list beyond manipulating the source streams.
SunnyListItem<T>
Renders for each item in a SunnyList - this allows us to invoke refreshes when the individual list item has changed (instead of removing, and then readding)
SunnyListItemState<T>

Extensions

DeleteDiffExt on DeleteDiff<E>

Functions

animatedList<T>() SunnyListDelegate<T?>
grid<T>({double mainAxisSpacing = 5.0, double crossAxisSpacing = 5.0, int crossAxisCount = 12, double tileHeight = 45.0, int tileWidthUnit = 4}) SunnyListDelegate<T?>
hideWhenEmpty<T>(Getter<Widget> widget) SunnyListWidgetBuilder<T>
listHeader<T>(Widget widget, {bool hideWhenEmpty = true}) SunnyListWidgetBuilder<T>
sliverAnimatedList<T>() SunnyListDelegate<T?>
sliverList<T>() SunnyListDelegate<T?>
staggeredGrid<T>({required double mainAxisSpacing, required double crossAxisSpacing, required int crossAxisCount}) SunnyListDelegate<T?>
sunnyHeader<T>(String headerText) SunnyListWidgetBuilder<T>

Typedefs

KeyGenerator<T> = String? Function(T input)
ListItemCallback<T> = void Function(SunnyListItemState<T> item)
ListTransform<F, T> = Future<Iterable<T>> Function(Iterable<F> source)
SunnyListDelegate<T> = SunnyListBaseState<T> Function()
SunnyListWidgetBuilder<T> = Widget Function(BuildContext context, SunnyListBaseState<T> list)
SwipeActionBuilder<T> = Widget Function(BuildContext context, T item)