Code Monkey home page Code Monkey logo

flutter_scaffold_clean_architecture_app's Introduction

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

flutter_scaffold_clean_architecture_app's People

Contributors

tpal-dev avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.