App to showcase demo for how to have Clean Architecture in Flutter with Get_It for dependency injection

Overview

Flutter Clean Architecture w/ BLoC, Get_It & Hive

App to showcase demo for how to have Clean Architecture in Flutter with Get_It for dependency injection, BLoC for state maintainence and Hive for persisting data into database.

Getting Started

This project is to showcase how we can use Clean Architure in Flutter App. The architecture of the app is as follows -

Clean Architecture design

The existing folder structure of the project is as belows -

image

Stream
   
    
     > getFeedPostsDatabaseStream() {
  if (_feedBox == null) {
    _initializeHiveBox();
  }
  return _feedBox!.watch().map((event) => List
     
      .generate(
      _feedBox!.values.length, (index) => _feedBox!.getAt(index)!));
}

     
    
   

Above function will create a Stream to listen for all the changes in the database. This then can be used to update the values automatically on feed_screen.dart.

Run Project

flutter pub get

flutter pub run build_runner build --delete-conflicting-outputs 

Then you can run the project as usual

You might also like...

Flutter demo application for Apple TV (tvos) using custom Flutter engine

Flutter demo application for Apple TV (tvos) using custom Flutter engine

Flutter for Apple TV A modification of the Flutter engine + test application to demonstrate that Flutter applications run on Apple TV This project (an

Dec 30, 2022

A basic demo example for integrating between Appwrite & Flutter πŸ’™

A basic demo example for integrating between Appwrite & Flutter πŸ’™

πŸ”– Quiz With Flutter A simple Quiz App built with Flutter and Appwrite 🎬 Getting Started 🀘 Install Appwrite Follow our simple Installation Guide to

Nov 22, 2022

A demo built with Flutter and Appwrite backend for Hacktoberfest 2021.

A demo built with Flutter and Appwrite backend for Hacktoberfest 2021.

Artistry: Appwrite - Flutter Demo πŸ’» Artistry is a demo app built with flutter and Appwrite backend for Hacktoberfest 2021, that demonstrates how to p

Dec 16, 2022

A basic demo example for integrating between Appwrite & Flutter πŸ’™

A basic demo example for integrating between Appwrite & Flutter πŸ’™

πŸ”– Todo With Flutter A simple todo app built with Flutter and Appwrite 🎬 Getting Started Appwrite is an end-to-end backend server for Web, Mobile, Na

Dec 15, 2022

A simple and clean news app made with Flutter and Dart

A simple and clean news app made with Flutter and Dart

News_Application A new Flutter project. Getting Started This project is a starting point for a Flutter application. Google Sing In. Internet Connctivi

Apr 26, 2021

Complete clean coded monitized flutter and firebase math app

Complete clean coded monitized flutter and firebase math app

Clean Archeticture (Flutter Firebase) Complete clean coded monitized flutter and firebase math app | | | | | | This project is a starting point for a

Nov 15, 2022

App-flutter-travel-app - Travel App Built Using Flutter

App-flutter-travel-app - Travel App Built Using Flutter

App-flutter-travel-app - Travel App Built Using Flutter

Dec 4, 2022

The Medito app is a 100% free meditation app built with flutter. The app is available on Android and iOS.

Medito App Meditation can positively transform people's lives. We believe no one should have to pay for it. We are the Medito Foundation, and we've bu

Dec 26, 2022

Flutter Responsive Game of Thrones Flutter App Flutter Responsive Game of Thrones Flutter App

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

Jun 9, 2022
Owner
Rohan Kandwal
Rohan Kandwal
A flutter clean architecture series, the way we build clean apps.

Flutter Clean Archeticture Series ?? "Making the world a better place" βœ… Full Articles You can check out the full Medium articles on devmuaz βœ… Branche

AbdulMuaz Aqeel 267 Jan 4, 2023
Flutter app demo multiple call with WebRTC and SFUs Architecture

Video Call Flutter App (SFUs Architecture) ?? Description: This is sandbox video call application using Flutter and WebRTC. SFUs – Selective Forwardin

Dao Hong Vinh 15 Dec 5, 2022
A recipe book app, made with Flutter and architected with clean architecture, using the MobX as state management.

recipe_book_app A new recipe book Flutter project, architected with clean architecture and state managed with MobX. Bases: Idea inpsired by Recipe-App

AndrΓ© I. Smaniotto 1 Jan 5, 2022
Flutter Clean Architecture app proposal: bloc + injectable + rxdart

Flutter Clean Architecture app proposal: bloc + injectable + rxdart (with the Repository pattern and SOLID principles)

Maxeem A Shemetov 14 Jan 1, 2023
A Flutter Number Trivia app example using clean architecture TDD

clean_architecture_tdd Reso Coder (Null-safety) (Null-safety) This is a Number Trivia app example using clean architecture TDD and flutter_bloc 7.3.0

Thomas Viana 49 Dec 31, 2022
Hours tracker app done with clean Architecture

A small project done with clean architecture in Flutter using BLoC as the state management. All the development is documented in a video series on YouTube.

Alexandru Pavel 10 Jun 28, 2022
On making this project I learned using Getx to change between dark mode to light mode, learned about the time zone and schedule notification , That I have Integrated in this small app, This is the small section of making a todo app.

On making this project I learned using Getx to change between dark mode to light mode, learned about the time zone and schedule notification , That I have Integrated in this small app, This is the small section of making a todo app.

Pawan Kumar 1 Aug 22, 2022
A simple flutter app with demo implementation of redux.

Flutter Redux Tutorial Redux Project is just a quick guide for implementation of redux.dart and flutter_redux . Written in dart using Flutter SDK. Ple

Pawan Kumar 46 Jun 16, 2022
Food App Demo for learning Flutter

foodapp_demo Food App Demo for learning Flutter Slicing UI SetState StateFull Widget LINK TUTORIAL https://www.youtube.com/watch?v=1Xd15C2k4OU&list=PL

Ronaldi 1 Mar 12, 2022
Supabase flutter user management demo app.

Supabase Flutter User Management This example will set you up for a very common situation: users can sign up with a magic link and then update their a

Hieu Pham 24 Dec 3, 2022