Skip to content

TR0U8L3-gif/number_trivia_app

Repository files navigation

Number Trivia App

A fully functioning mobile application that retrieves the trivia number from the API and saves the last searched trivia in the device's local memory

This example project was used to learn how to work in TDD (Test Driven Development) and follow the principles of Clean Architecture. While developing this app, I undertook the following steps:

  • Creating folder structure: data, domain, presentation
  • Use Cases
  • Models & Entities
  • Repository
  • Network Information
  • Local and Remote Data Source
  • Bloc Scaffolding
  • Dependency Injection
  • User Interface

Dependencies

Package Description
dartz handling functional programming concepts such as Option and Either
dio easy communication with a server through the HTTP protocol
equatable simplifies the implementation of object equality
flutter_bloc managing state and business logic through BLoC pattern
get_it dependency injection
internet_connection_checker monitoring the state of the internet connection
shared_preferences simple library for storing data in the device's cache
flutter_launcher_icons tool for easily adding custom app icon
flutter_native_splash customization of the application's splash screen
mocktail creating mock objects during unit testing

ScreenShots

splash screen welcome screen
number input loading screen
number trivia cached number trivia
input error cache error

Resources:

  • Numbers Api - Website link
  • Reso Coder - Flutter TDD Clean Architecture youtube
  • Reso Coder - Website link

About

Flutter TDD Clean Architecture App

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages