How to Properly Load Assets in Flutter Tests from Different Directories in Project Structure
I’m having trouble loading assets in my Flutter tests.
My project structure looks like this:
Flutter widget test won’t work when using StreamBuilder, snapshot connection state is always waiting
When I try to check a widget test (I haven’t implemented it yet) the test throws an error because it couldn’t find the widget I’m searching. I debugged the code and it stops at the part where it selects the screen depending on the snapshot data, because the connection state is in Waiting.