Clean architecture template project for new flutter applications.

Overview

Flutter

clean_template

Clean architecture template project for new flutter applications.


Implemented app logic

  • RestClient - rest API client-server networking using dio package;
  • DIContainer - dependency injection container using get_it package;
  • Service - abstraction for implementing specific app logic; Implementations of Service:
    • AppRouter - app navigation using flutter navigation with Routes enum. Supports nested navigator;
    • ModalBottomSheetService - service for showing modal bottom sheet;

Project structure:

  • config
  • core
    • app
    • services
      • router
  • data
    • models
    • storage
  • domain
    • models
      • requests
      • responses
    • network
    • repositories
  • presentation
    • components
    • screens
    • styles
  • utils
    • extensions

Structure description

  • config -
  • core -
    • app -
    • services -
      • router -
  • data -
    • models -
    • storage -
  • domain -
    • models -
      • requests -
      • responses -
    • network -
    • repositories -
  • presentation -
    • components -
    • screens -
    • styles -
  • utils -
    • extensions -

Used dependencies

Necessary


Additional useful dependencies

  • http - library for making http requests, has many useful functions and classes
  • freezed_annotation - required when using freezed package, helps to generate freezed classes
  • easy_localization - very simple for implement localization library with support of json configs and localization keys generator
  • permission_handler - helps to request any permissions from app users

Used dev dependencies

Necessary


Additional

  • freezed (recommended) - very useful code generator that helps to save many work time and significantly reduces lines of code

TODOS

  • fill project structure directories description
  • add more dependency packages
    • add UI dependencies bloc
  • implement DialogSerivce
  • implement OverlayService
  • implement auto_route package
You might also like...

Flutterstarterproject - Clean Architecture Flutter starter project, using tdd + bloc

Flutterstarterproject - Clean Architecture Flutter starter project, using tdd + bloc

Flutter Starter Project Generated by the Nero Lab CLI 🤖 A Nero Lab Project crea

Dec 8, 2022

Flutter starter project - boilerPlate for Clean Architecture with Domain-Driven-Design with commonly used dependencies

flutter_starter_project A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you

Jan 2, 2022

This project follows the Reso Coder course for flutter test-driven-development with clean architecture and BloC state management for a random trivia simple app.

This project follows the Reso Coder course for flutter test-driven-development with clean architecture and BloC state management for a random trivia simple app.

Jan 5, 2022

Flutter project to find and discover events with Clean Architecture and Bloc from SeatGeek API.

Flutter project to find and discover events with Clean Architecture and Bloc from SeatGeek API.

Dec 6, 2022

This is an example project for the article about implementing clean architecture in flutter with riverpod and supabase as backend service.

The Example This is an example how to implement clean architecture with domain driven design and riverpod in flutter projects. Getting Started Rename

Dec 30, 2022

A Boilerplate Project which adopts the concept of Clean Architecture and Modularization.

A Boilerplate Project which adopts the concept of Clean Architecture and Modularization.

Flutter-Works Boilerplate Table Of Content Overview Getting Started Requirement Setup Setup Firebase Android IOS Change Package Name Running/Debugger

Aug 28, 2022

Clean Architecture Project with TDD Approach

Clean Architecture Project with TDD Approach

Clean-Architecture-Project-with-TDD-Approach Small project to implement TDD(Testing Driven Development) by applying SOLID and YAGNI and rules(Clean Ar

Jun 24, 2022

Flutter getx template - A Flutter Template using GetX package for State management, routing and Dependency Injection

Flutter getx template - A Flutter Template using GetX package for State management, routing and Dependency Injection

Flutter GetX Template (GetX, Dio, MVVM) This Flutter Template using GetX package

Aug 27, 2022

Choose color theme template - A template will help you choose a color scheme for the application, show how widgets interact with it

Choose color theme template - A template will help you choose a color scheme for the application, show how widgets interact with it

choose_color_theme_template This template will help you choose a color scheme fo

Oct 24, 2022
Owner
mentally_unstable
mentally_unstable
Ouday 25 Dec 15, 2022
Flutter-clean-architecture - A simple flutter project developed with TDD and using Clean Architecture principles.

Clean Architecture This is a study project to practice TDD and a good approach of Clean Architecture for flutter projects. It is based on Reso Coder s

Luiz Paulo Franz 8 Jul 21, 2022
clean architecture and clean code with flutter , with bloc and getx state managment .

example_bloc A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if

Khaled ElTohamy 6 Aug 22, 2022
Flutter Architecture inspired by Domain Driven Design, Onion and Clean Architecture

Inspiring Domain Driven Design Flutter Architecture Please take a look at my slides to learn more Strategic Domain Driven Design For Improving Flutter

Majid Hajian 324 Dec 25, 2022
Proyect with Clean Architecture / Hexagonal Architecture - Patron BLoC - The MovieDB API

flutter_movies_db A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you starte

null 2 Sep 22, 2022
Flutter Architecture Blueprints is a project that introduces MVVM architecture and project structure approaches to developing Flutter apps.

Flutter Architecture Blueprints Flutter Architecture Blueprints is a project that introduces MVVM architecture and project structure approaches to dev

Katsuyuki Mori 2 Apr 9, 2022
Flutter Architecture Blueprints is a project that introduces MVVM architecture and project structure approaches to developing Flutter apps.

Flutter Architecture Blueprints Flutter Architecture Blueprints is a project that introduces MVVM architecture and project structure approaches to dev

Daichi Furiya 1.5k Dec 31, 2022
Structured and Organized Flutter (ANDROID+WEB) template project using Redux architecture and Retrofit rest package

flutter_redux_template A new Flutter project. JSON Models classes need this lines to json generator: part 'foo.g.dart'; //on imports factory Foo.from

Raul Abreu 2 Apr 11, 2022
Flutter project template with BloC architecture. Implemented many feature as stated in README

Flutter Project Template Using BloC Implementations Theme switching Advanced Routing Bloc Observer for debugging Hydrated Cubit for holding value even

Baran Açıkgöz 9 Dec 10, 2022
Flutter ui boilerplate is easiest way to create new flutter project with clean code and well organized file folder.

Flutter UI Boilerplate "Sharing for fun" Flutter ui boilerplate is easiest way to create new flutter project with clean code and well organized file f

Dimas Ibnu Malik 122 Dec 1, 2022