Giter Site home page Giter Site logo

shahanajparvin / clean_architecture_flutter_example Goto Github PK

View Code? Open in Web Editor NEW
15.0 2.0 1.0 3.89 MB

A fluttter clean architecture example using flutter_bloc, flutter_hook, auto_route, floor, get_it

License: MIT License

Kotlin 0.42% Ruby 3.98% Swift 1.19% Objective-C 0.11% Dart 94.31%
flutter-bloc auto-generator auto-route dio equatable floor flutter flutter-hooks freezed get-it

clean_architecture_flutter_example's Introduction

Flutter Clean Architecture Example

Overview

The project is structured using Clean Architecture principles, which divide the codebase into several layers:

  • Presentation Layer: This layer contains UI components, including screens, widgets, and Flutter-specific code.
  • Domain Layer: Here, we define the business logic and use cases of the application. It includes the core business rules and entities.
  • Data Layer: This layer manages data sources, repositories, and data models. It handles data retrieval and storage.

Features

  • Clean Separation of Concerns: Clear separation between layers for better maintainability and testability.
  • Dependency Injection: We use the get_it package for managing dependencies.
  • Sample Use Cases: Includes sample interactions and use cases.
  • Organized Project Structure: A well-organized structure for easy navigation and development.

Getting Started

Follow these steps to run this project on your local machine:

  1. Clone the repository:

git clone https://github.com/shahanajparvin/clean_architecture_flutter_example.git

  1. Navigate to the project directory:

cd flutter-clean-architecture-example

  1. Install dependencies:

flutter pub get

  1. Run the app:

flutter run

Dependencies

We use several packages to facilitate Clean Architecture and improve developer productivity, including:

  • get_it for dependency injection.
  • dio for making network requests.
  • equatable for value equality.
  • bloc for state management.

For the complete list of dependencies, refer to the pubspec.yaml file.

Contributing

If you would like to contribute to this project or have suggestions for improvements, please feel free to open an issue or submit a pull request. We welcome and appreciate your contributions!

This project is licensed under the MIT License.

clean_architecture_flutter_example's People

Contributors

shahanajparvin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

devexsolutions

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.