Skip to content

Flutter scaffold app: Clean Architecture, BLoC, Freezed, DIO HTTP get request + unit tests.

Notifications You must be signed in to change notification settings

tpal-dev/Flutter_Scaffold_Clean_Architecture_App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample clean architecture app

About 📱

Project include

  • clean architecture,
  • freezed,
  • bloc,
  • get_it
  • dio with error handling
  • unit tests: mocktail + bloc_test

Useful Resources 🧑🏼‍🎓

Clean Architecture:

Freezed:

Bloc:

Get_it:

Dio:

Mocktail:

Bloc_test:

Either class - Functional programing:

Project structure

📦lib
 ┣ 📂core
 ┃ ┣ 📂api
 ┃ ┃ ┣ 📜error_handler.dart
 ┃ ┃ ┗ 📜http_client.dart
 ┃ ┣ 📂const
 ┃ ┃ ┣ 📜app_colors.dart
 ┃ ┃ ┣ 📜app_text_styles.dart
 ┃ ┃ ┣ 📜app_themes.dart
 ┃ ┃ ┗ 📜image_resources.dart
 ┃ ┣ 📂either
 ┃ ┃ ┣ 📜either.dart
 ┃ ┃ ┗ 📜either.freezed.dart
 ┃ ┣ 📂error
 ┃ ┃ ┣ 📜failure.dart
 ┃ ┃ ┗ 📜failure.freezed.dart
 ┃ ┣ 📂presentation
 ┃ ┃ ┣ 📂routes
 ┃ ┃ ┃ ┗ 📜.gitkeep
 ┃ ┃ ┗ 📂widgets
 ┃ ┃ ┃ ┗ 📜app_snackbar.dart
 ┃ ┗ 📜dependencies.dart
 ┣ 📂features
 ┃ ┗ 📂sample
 ┃ ┃ ┣ 📂data
 ┃ ┃ ┃ ┣ 📂datasources
 ┃ ┃ ┃ ┃ ┗ 📜post_remote_data_source.dart
 ┃ ┃ ┃ ┣ 📂models
 ┃ ┃ ┃ ┃ ┣ 📜post_model.dart
 ┃ ┃ ┃ ┃ ┣ 📜post_model.freezed.dart
 ┃ ┃ ┃ ┃ ┗ 📜post_model.g.dart
 ┃ ┃ ┃ ┗ 📂repositories
 ┃ ┃ ┃ ┃ ┗ 📜post_repository_impl.dart
 ┃ ┃ ┣ 📂domain
 ┃ ┃ ┃ ┣ 📂entities
 ┃ ┃ ┃ ┃ ┗ 📜post_entity.dart
 ┃ ┃ ┃ ┣ 📂repositories
 ┃ ┃ ┃ ┃ ┗ 📜post_repository.dart
 ┃ ┃ ┃ ┗ 📂usecases
 ┃ ┃ ┃ ┃ ┗ 📜get_post_usecase.dart
 ┃ ┃ ┣ 📂presentation
 ┃ ┃ ┃ ┣ 📂cubit
 ┃ ┃ ┃ ┃ ┣ 📜post_cubit.dart
 ┃ ┃ ┃ ┃ ┣ 📜post_cubit.freezed.dart
 ┃ ┃ ┃ ┃ ┗ 📜post_state.dart
 ┃ ┃ ┃ ┣ 📂pages
 ┃ ┃ ┃ ┃ ┗ 📜sample_page.dart
 ┃ ┃ ┃ ┗ 📂widgets
 ┃ ┃ ┃ ┃ ┣ 📜.gitkeep
 ┃ ┃ ┃ ┃ ┗ 📜post_loaded.dart
 ┃ ┃ ┗ 📜dependencies.dart
 ┣ 📜app.dart
 ┣ 📜bootstrap.dart
 ┣ 📜dependencies.dart
 ┗ 📜main.dart

About

Flutter scaffold app: Clean Architecture, BLoC, Freezed, DIO HTTP get request + unit tests.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages