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.
Use the bloc pattern to create flutter apps with a standardized design pattern, are easy to work on, and organize code efficently.
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.
- 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
# Clone the repo
git clone https://github.com/flatlogic/react-native-starter.git
# Navigate to clonned folder and Install dependencies
flutter pub getRight 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
online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.