Skip to content

bw7432/flutter_bloc_starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flutter Bloc / Flutter Files Starter

Flutter Bloc Starter app is a production ready starter template for creating flutter apps using the bloc pattern. It demonstrates the use of flutter bloc for creating login, sign up, and sign out functionality.

Flutter Bloc

Use the bloc pattern to create flutter apps with a standardized design pattern, are easy to work on, and organize code efficently.

Flutter Files

This plugin (Flutter Files) for Visual Studio code makes generating boilerplate bloc code much easier. Flutter Files generated code lives in the "Features" directory in this example. These are your pages.

What's Inside

  • features - pages, state, events, screens
  • interceptors - handles adding things like tokens to api calls
  • models - data models
  • networking - api client for handling GET, Put, Post, etc.
  • repositories - handles creating api calls
  • responses - processes responses from the api, maps data to models
  • router - named routes

Getting Started

1. Clone and Install

# Clone the repo
git clone https://github.com/flatlogic/react-native-starter.git

# Navigate to clonned folder and Install dependencies
flutter pub get

2. Install the flutter files plugin for Visual Studio code

Right click a folder in your file tree and select new small bloc pack. This will generate a boilerplate page, event, screen, state, and bloc files.

A few resources to get you started if this is your first Flutter project:

An app made from this template

Flutter Documentatioin

online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

About

A complete starting point for building apps using the flutter bloc pattern

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published