cdli-gh / cdli-mobile-app

MIT License
4 stars 8 forks source link

App breaks in Recently Viewed Screen in debug mode #16

Open MrUnfunny opened 3 years ago

MrUnfunny commented 3 years ago

Hello Everyone

Currently, the app breaks if you switch to 'Recently Viewed' screen in debug mode. It breaks on this LOC and due to this LOC. Here in the FutureBuilder we assume dataState.list to be a normal list however it's an asynchronous list being fetched from api call. On first call, it is empty and that's why the app breaks.

I can send a PR to show a circular Progress Indicator while the list is empty.

MrUnfunny commented 3 years ago

@NishealJ Please take a look