How to cache Custom Widget in Flutter?
I’m writing a ChatApp in Dart, i’ve found a problem when writing my custom Voice Message widget using:audio_waveforms: ^1.0.5
I’ve done so but i didn’t found a method to cache the voice message widget this causes to have very long loading times and when you send a new voice message it brakes, it creates a new message but it contains the upper one and only after you rerender the chatpage it corrects himself. Here’s the code:
in Flutter, CachedNetworkImage doesn’t work (doesn’t load from CachedData)
Chrome DevTools network Tab