This application developed for testing purposes, So I focused on Structure. The application developed by Bloc state management in MVVM. I also use GetIt for implementing DI. For implementation of UI, I used both Strategy as well as Factory of Design Patterns The application take a name from user and send it for www.agify.io api for get estimation age based on your name. I also use Internal Cache strategy for make app faster. In fetching data from api, you can see two implementation on with Async and Isolate, but I prefered using Async here. In test part you can see tests for both unit and widget.
Implementation of application got around 2.5 h. Most of time was about creating structure.
Language: Dart
Framework: Flutter
Rest Client: Http
State Management: Bloc
Test: Mockito, BlocTest
Dependency Injection GetIt
Color | Hex |
---|---|
Primary Color | #E0E0E0 |
Secondary Color | #D94B5D |
Surface Color | #FFFFFF |
Title Color | #3B3A3A |
Error Color | #FFCA0000 |