Here are the things I felt worth to be mentioned:
- I used domain driven architecture in a simplified manner.
- I used Bloc as state management library, which is my personal favorite and also preferred by official Flutter teams on many events.
- For equality check I used Equatable instead of Freezed, because I wanted to avoid code-generation as much as possible.
- I used FpDart for handling error like functional programming approach.
- I used Fast-Immutable-Collection to make List and Map values for convenient.
- For loading genre and Movie data I showed loading indicator and for error I showed error message as a popup dialog.
- For showing movie details I used a bottom sheet so that the details info become scrollable across the screen which is more user friendly.
- For showing movie poster I used CachedNetwork image and I've seen some of the poster links are dead, So I showed red exclamator (!) mark there.
- When no internet connection is available, I showed a top indicator informing user that data is now being served from the cache.
- I used Hive as a local database to cache the data. As Hive was last updated 9 months ago, so I used a updated version of Hive from Github.
- I also stored data in a temp variable for avoiding unnecessary api calls.
- When no internet connection is available, I showed the cached data.
- I used bloc_test library for testing blocs.
- I created a fake repository for testing.
- As the level of testing was not mentioned and time was short, I only performed unit testing on blocs.
I hope this submission proves my level of expertise in Flutter and Dart. I'm looking forward to hearing from you soon. Thank you.