Use "CachedNetworkImage" (from the cached_network_image library) instead of "ImageNetwork":
Utilize caching to store images loaded from URLs. Once an image is loaded, it won't need to be fetched from the network again but will instead be retrieved from the cache.
Automatically manage cache storage and deletion.
Ideal for applications that display multiple or recurring images, saving network data and improving display speed.
ChatBubble:
Extract methods for better code readability.
Use AutomaticKeepAliveClientMixin: This mixin helps widgets retain their state when they go off-screen, avoiding unnecessary rebuilds.
Fix issue #33
Use "CachedNetworkImage" (from the
cached_network_image
library) instead of "ImageNetwork":ChatBubble:
AutomaticKeepAliveClientMixin
: This mixin helps widgets retain their state when they go off-screen, avoiding unnecessary rebuilds.