A default Widget that can be used to load an image
This is more an example to give you an idea how to structure your own Widget,
since too many aspects would require to be customized, for instance
implementing your own image loader, padding, constraints, footer etc.
A default Widget that can be used to show a video preview.
One would play the video upon clicking the item.
This is more an example to give you an idea how to structure your own Widget,
since too many aspects would require to be customized, for instance
implementing your own image loader, padding, constraints, footer etc.
A class that manages the item list; as such, this class should be the only one holding the list of items it controls
You should perform all add/remove items with the api this class provides.
There is no selection management since usually tapping simply means navigating to the chat
and longPressing will trigger single item actions;
A class that manages the item list; as such, this class should be the only one holding the list of items it controls
You should perform all add/remove items with the api this class provides.
This class also handles click management:
longPressing an item will select it;
tapping an item will toggle its selection if isSelectionModeActive is true.
Listen to selectionEventStream to catch any selection event SelectionEvent.
Make sure to call MessagesListController.dispose when disposing the widget.