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.
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.