BLoC Architecture Startup Project

Overview

BLoC Architecture Startup Project

Hello everyone and welcome back!

This repo is going to serve as a starting project for every application I will build on my BLoC - From Hero to Wizard Tutorial Series on my Flutterly YouTube Channel

About the structure of the project

This main startup project will contain everything you'll need in order to immediately start developing your bloc-driven application.

Here's some advantages:

You might notice that some files are just dummy (like api.dart, model.dart). They are placed there just for git to take the folder structure into consideration. Leaving those folders empty won't let git to take them into consideration. Since this is mostly a startup project, I was thinking of offering you the standard folder structure from the start. Of course, this may change multiple times, improving every time more and more.

You might also like...

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

Flutter Architecture inspired by Domain Driven Design, Onion and Clean Architecture

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

Dec 25, 2022

Weather app using Bloc architecture pattern & generic HTTP client with interface implementation and much more for more detail read Readme

Weather app using Bloc architecture pattern & generic HTTP client with interface implementation and much more for more detail read Readme

weather Weather application for current weather, hourly forecast for 48 hours, Daily forecast for 7 days and national weather alerts. How to Run Insta

Oct 29, 2022

A Flutter repo with a ready-to-go architecture containing flavors, bloc, device settings, json serialization and connectivity

A Flutter repo with a ready-to-go architecture containing flavors, bloc, device settings, json serialization and connectivity

Flutter Ready to Go A Flutter repo with a ready-to-go architecture containing flavors, bloc, device settings, json serialization and connectivity. Why

Nov 11, 2022

[Flutter SDK V.2] - Youtube Video is a Flutter application built to demonstrate the use of Modern development tools with best practices implementation like Clean Architecture, Modularization, Dependency Injection, BLoC, etc.

[Flutter SDK V.2] - Youtube Video is a Flutter application built to demonstrate the use of Modern development tools with best practices implementation like Clean Architecture, Modularization, Dependency Injection, BLoC, etc.

[Flutter SDK V.2] - Youtube Video is a Flutter application built to demonstrate the use of Modern development tools with best practices implementation like Clean Architecture, Modularization, Dependency Injection, BLoC, etc.

Jan 2, 2023

BLoC Architecture App

BLoC Architecture App

BLoC Architecture App This repository imitate the starting project structure for every flutter applications that I have developed using the BLoC packa

Dec 8, 2022

Random Users app, developed with Flutter and using Clean Architecture, BLoC, TDD and Functional Programming.

random_users This project is a sample of how to build a Flutter application using de benefits of Clean Architecture, TDD and Functional Programming. G

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

Aug 22, 2022

💻 Flutter clean architecture using the bloc & cubit library for state management

💻 Flutter clean architecture using the bloc & cubit library for state management

Egymation 🎥 · This application was developed using a well-defined and decoupled architecture, following TDD (test-driven programming) as a working me

Nov 21, 2022
Comments
  • Create and use routes.dart file instead of strings.dart for routes.

    Create and use routes.dart file instead of strings.dart for routes.

    As the app grows in size, the routes will also grow as well and keeping the text Strings used in the app and the routes in the same place will be anti-pattern. I suggest you to create a utils folder and under it keep the routes.dart file which will hold all the routes.

    If you are ok with this idea, I can create a PR with the changes

    opened by zyllus17 1
  • Improve AppRouter logic

    Improve AppRouter logic

    AppRouter logic could be improved:

    1. Make AppRouter.onGenerateRoute method static so you won't need to create an instance of the AppRouter in main.dart, the code is a little bit cleaner.
    2. Make all the routes as static strings in the AppRouter class so you could later use them from UI by calling Navigator.of(context).pushNamed(AppRouter.routeName). This way, you ensure that there won't be undefined route calls. If an undefined route is used, a custom RouteException would be thrown so you would be aware that you need to handle it.
    1. (Optional) I haven't added it, but I would recommend adding linter to the project as soon as possible (lint, pragmatic, custom analysis_options.yaml file, etc.).
    opened by mkobuolys 1
  • BlocObserver Issues

    BlocObserver Issues

    // @override // void onChange(Cubit cubit, Change change) { // print(change); // super.onChange(cubit, change); // }

    // @override // void onClose(Cubit cubit) { // super.onClose(cubit); // }

    // @override // void onCreate(Cubit cubit) { // print(cubit); // super.onCreate(cubit); // }

    // @override // void onError(Cubit cubit, Object error, StackTrace stackTrace) { // super.onError(cubit, error, stackTrace); // }

    These are removed in latest version of Bloc & Flutter Bloc. I think they don't support Cubit but some or none supports Bloc (In above four override methods of BlocObserver Class.

    opened by sauravgpt 0
Owner
Tiberiu Potec
Welcome to my Github page! Hope you enjoy my work!
Tiberiu Potec
Ouday 25 Dec 15, 2022
My-First-Flutter-App - Startup Name Generator App with favorites option

Startup Name Generator App with 'favorites' option.. This is my first Flutter ap

REDLUNA CRYSTAL 0 Jan 21, 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
Petrus Nguyễn Thái Học 193 Dec 29, 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
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
Flutterstarterproject - Clean Architecture Flutter starter project, using tdd + bloc

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

Muhammad Noerhidayatullah 12 Dec 8, 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.

Tomas B Sarmiento Abella 1 Jan 5, 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