A Flutter starter-kit for production-level apps.

Overview

Flutter Starter

All Contributors

Introduction

We wanted to take Flutter a step further and accelerate the process of building production-level apps. Presenting our solution- Flutter Starter!

Flutter Starter, as the name suggests, is a starter kit for Flutter that helps you bootstrap projects with all the essential modules like State Management, API calls, Style Guide, etc. It helps you build production ready apps in a jiffy. Handle everything at one place so you don't have to rewrite code.

Motivation

Flutter gives us a simple counter app on installation which works if you are just starting out. However, while building a production-level app, we need state-management, API calls, Styleguide and common widgets. We frequently repeat this code in every project.

Flutter Starter is based on the DRY principle. Don't Repeat Yourself is a programming principle that is aimed at reducing repetition and redundancy.

💡 The DRY principle states that "Every piece of knowledge must have a single, unambiguous, authoritative representation within a system".

Why is this useful? Applying the DRY principle helps code maintainability, improves development efficiency and much more!

Features

  • Folder Structure: Flutter Starter comes with a well-defined folder structure. Devs can easily navigate it and add files where necessary.

  • Style Guide: This kit helps you to build a Style Guide for your app. You can add your image and font assets, splash screen, color constants and theme data. These are available for use wherever required in your project.

  • API Calls: The starter kit includes all the files you need for API handling. You can choose from REST, GraphQL and Firebase depending on your project.

  • State Management: Flutter Starter contains all the state management files, models and repositories for your app. We will use Bloc for state management.

  • Routers & Dependencies: This kit allows you to quickly add routers for your app screens. Dependencies can also be added to your app by simply copy-pasting the install version from pub.dev into the designated file.

  • Testing & Deployment: Lastly, you can test and deploy your app smoothly using Flutter Starter! Go to the test folder, add your test files and start writing test cases. Check out the Android or iOS pages to deploy your app.

Installing & Usage

Go to Flutter and install Flutter on your system. Proceed to our Github repository and create a template.

To run the project, run:

bash run_script.sh

💡 You can build apps with Flutter using any text editor combined with our command-line tools. We use VS Code since it is lightweight.

Examples

Here are some of the example apps made using Flutter Starter:

Tech Stack

Flutter, Firebase, GraphQL, REST and Bloc.

Naming Conventions

  • Variables: camelCase
  • Classes: PascalCase
  • Files: snake_case

Build Status

Check out our roadmap here.

Contributors


Sumant Raj

💻

madhav23bansal

💻

How to Contribute

Thank you for your interest in contributing to Flutter Starter! We are lucky to have you 🙂 Head over to Contribution Guidelines and learn how you can be a part of a wonderful, growing community.

License

Licensed under the MIT License, Copyright © 2020 GeekyAnts. See LICENSE for more information.

Comments
  • .DS_Store

    .DS_Store

    In the route folder (as well as in many sub folders) you have a file called .DS_Store as these refer to Mac's file folder and has nothing to do with flutter, it might be better to remove such files. Personally I find these files a right pain in the neck when I transfer files from my MacBook to Windows.

    The following web page describes how you can disabled them on a mac:

    https://www.techrepublic.com/article/how-to-disable-the-creation-of-dsstore-files-for-mac-users-folders/

    opened by johnareid54 2
  • github pipeline ?

    github pipeline ?

    hi guys, would it be possible for you to add a github pipeline config here ? including for production ?

    i realise that the pipeline run would cost money, so you could just add the .github directory under some other name. it would be super helpful to use this repo.

    opened by sandys 0
  • deprecated version of Android embedding -- migrate to V2 embedding

    deprecated version of Android embedding -- migrate to V2 embedding

    Hey guys, I'm pretty new to flutter (mainly experienced in iOS Swift, Ruby, and JavaScript -- but dabbled in some Flutter examples). Want to build a cross-platform app in Flutter without reinventing the wheel/starting from scratch. This starter app is a really awesome idea and you guys have some amazing docs and presentation -- thanks for doing this!

    I just cloned this today and am getting an error that the Android embedding version has been deprecated. If it's only for Firebase, I don't plan to use that anyway, as I plan to build my own REST API backend. However, I have absolutely no idea about this architecture! It would be awesome if this template could possibly be fixed/updated to use the new embedding API. Or, could it be something on my end? I'm running an M1 MacBook Pro with the following Flutter:

    flutter doctor                    04/9 12:13:37
    Doctor summary (to see all details, run flutter doctor -v):
    [✓] Flutter (Channel beta, 2.12.0-4.1.pre, on macOS 12.3.1 21E258
        darwin-arm, locale en-US)
    [✓] Android toolchain - develop for Android devices (Android SDK version
        32.1.0-rc1)
    [✓] Xcode - develop for iOS and macOS (Xcode 13.3)
    [✓] Chrome - develop for the web
    [✓] Android Studio (version 2021.1)
    [✓] IntelliJ IDEA Community Edition (version 2021.3.2)
    [✓] VS Code (version 1.66.1)
    [✓] Connected device (2 available)
    [✓] HTTP Host Availability
    
    • No issues found!
    

    This is my run output:

    bash run_script.sh                 04/9 12:12:40
    +++++API SDK pub clean+++++
    +++++API SDK pub get+++++
    Running "flutter pub get" in api_sdk...                            13.8s
    +++++API SDK done+++++
    +++++Shared pub clean+++++
    +++++Shared pub get+++++
    Running "flutter pub get" in shared...                           2,866ms
    +++++Shared done+++++
    +++++Main app pub clean+++++
    Cleaning Xcode workspace...                                      1,492ms
    +++++Main app pub get+++++
    Running "flutter pub get" in app...                                 5.9s
    This app is using a deprecated version of the Android embedding.
    To avoid unexpected runtime failures, or future build failures, try to
    migrate this app to the V2 embedding.
    Take a look at the docs for migrating an app:
    https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects
    The plugin `cloud_firestore` requires your app to be migrated to the
    Android embedding v2. Follow the steps on
    https://flutter.dev/go/android-project-migration and re-run this command.
    +++++Main app run+++++
    This app is using a deprecated version of the Android embedding.
    To avoid unexpected runtime failures, or future build failures, try to
    migrate this app to the V2 embedding.
    Take a look at the docs for migrating an app:
    https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects
    The plugin `cloud_firestore` requires your app to be migrated to the
    Android embedding v2. Follow the steps on
    https://flutter.dev/go/android-project-migration and re-run this command.
    
    opened by tgrushka 1
  • Not compiling

    Not compiling

    +++++Main app pub get+++++ Running "flutter pub get" in app... 1,253ms The plugin cloud_firestore uses a deprecated version of the Android embedding. To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs. If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration. +++++Main app run+++++ The plugin cloud_firestore uses a deprecated version of the Android embedding. To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs. If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration. Using hardware rendering with device sdk gphone x86 arm. If you notice graphics artifacts, consider enabling software rendering with "--enable-software-rendering". Launching lib/main.dart on sdk gphone x86 arm in debug mode... Plugin project :firebase_core_web not found. Please update settings.gradle. Plugin project :firebase_auth_web not found. Please update settings.gradle. ../../flutter-sdk/flutter/.pub-cache/hosted/pub.dartlang.org/uuid_enhanced-3.0.2/lib/uuid.dart:9:7: Error: 'UnmodifiableUint8ListView' is restricted and can't be extended or implemented.

    ../shared/lib/modules/authentication/models/firebase_user.dart:8:10: Error: The parameter 'uid' can't have a value of 'null' because of its type 'String', but the implicit default value is 'null'. Try adding either an explicit non-'null' default value or the 'required' modifier. this.uid, ^^^ ../shared/lib/modules/authentication/models/firebase_user.dart:9:10: Error: The parameter 'email' can't have a value of 'null' because of its type 'String', but the implicit default value is 'null'. Try adding either an explicit non-'null' default value or the 'required' modifier. this.email, ^^^^^ ../shared/lib/modules/authentication/models/firebase_user.dart:10:10: Error: The parameter 'token' can't have a value of 'null' because of its type 'String', but the implicit default value is 'null'. Try adding either an explicit non-'null' default value or the 'required' modifier. this.token, ^^^^^ ../shared/lib/modules/authentication/bloc/authentication/authentication_event.dart:21:30: Error: The parameter 'email' can't have a value of 'null' because of its type 'String', but the implicit default value is 'null'. Try adding either an explicit non-'null' default value or the 'required' modifier. UserSignUp({@required this.email, this.password}); ^^^^^ ../shared/lib/modules/authentication/bloc/authentication/authentication_event.dart:21:42: Error: The parameter 'password' can't have a value of 'null' because of its type 'String', but the implicit default value is 'null'. Try adding either an explicit non-'null' default value or the 'required' modifier. UserSignUp({@required this.email, this.password}); ^^^^^^^^ ../shared/lib/modules/authentication/bloc/authentication/authentication_event.dart:30:29: Error: The parameter 'email' can't have a value of 'null' because of its type 'String', but the implicit default value is 'null'. Try adding either an explicit non-'null' default value or the 'required' modifier. UserLogin({@required this.email, this.password});

    opened by banerjed 0
  • Update routes/index.dart

    Update routes/index.dart

    This change will help in following ways-

    • if Project is using Google Analytics then a person can trace a path with the help of the name: settings.name. This is basically the Screen Name. More detail- https://www.filledstacks.com/post/firebase-analytics-and-metrics-in-flutter/ (I am not author to this site, I am suggesting changes as I have implemented this into my app)
    • passing arguments in generic ways.
    opened by ycv005 1
Um Quiz sobre a tecnologias, desenvolvido em Flutter, durante a semana NLW#5 - Next Level Week.

Descrição do projeto ⭐ Um aplicativo desenvolvido durante a semana Next Level Week#5 da Rocketseat. Um Quiz com informações sobre tecnologias em geral

Thaís Silveira 7 May 11, 2022
Aplicação mobile com Flutter produzida durante o Next Level Week #05

✨ Tecnologias Esse projeto foi desenvolvido com as seguintes tecnologias: Flutter Dart ?? Projeto O devquiz é um jogo de perguntas para avaliar os seu

Rocketseat Education 47 Nov 12, 2022
Next Level Week 05 - Flutter - DevQuiz

devquiz 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

Jardel Urban 2 Jun 5, 2022
Project Dev.Quiz, developed in Next Level Week for Rocketseat.

DevQuiz ✅ Liftoff ?? ✅ Maximum Speed ??‍♂️ ✅ In Orbit ??‍?? ✅ Landing ?? ✅ Surface Exploration ⚡ ✅ Accelerating your Career ?? Topics ?? About ?? Prev

Felipe Sales 26 Sep 19, 2022
High-level APIs for Amazon Web Services (AWS) in Dart

High-level APIs for Amazon Web Services (AWS) in Dart Shared API utilities Generated API packages directory DocumentClient for DynamoDB Code generator

null 178 Dec 28, 2022
O projeto PayFlow foi desenvolvido na Next Level Week Together 💜 💚

Tópicos ?? Sobre ?? Layout ?? Arquivos no Notion ?? Como Usar ?? Sobre ?? O projeto PayFlow foi desenvolvido na Next Level Week Together ?? ?? . Nosso

Rocketseat Education 386 Nov 29, 2022
Mobile and Desktop whatsapp clone with Flutter UI tool kit

Mobile and Desktop whatsapp clone with Flutter UI tool kit

Travis Okonicha 10 Oct 25, 2022
Flutter Social App UI kit from Floein inc.

Flutter Social Media App UI Kit Flutter 2.2.0 Open Source :) Licence Section is given below (at the End of this the Document) For Demo Video link is g

Muhammad Rizwan 55 Nov 26, 2022
A Flutter ui kit made with designs from dribbble.

Flutter Dribble Challenge A Flutter ui kit made with designs from dribbble. Introduction I am Bhavneet Singh a freelancer who is always excited to wor

Bhavneet Singh 594 Dec 28, 2022
A flutter plugin for integrating Mobile Money Payments to your flutter apps

Add Mobile Money payments to your flutter apps using the FlutterWave api gateway. Features Recieve Payments through Mobile Money in Uganda Supports MT

null 5 Nov 9, 2022
Flutter OSM - OSM Plugin For Flutter Apps

flutter_osm_plugin osm plugin for flutter apps (only Android for now, iOS will b

null 1 Mar 29, 2022
Firebase + Flutter sample apps with code snippets, supported by comprehensive articles for each implementation.

FlutterFire Samples This repo is created to contain various sample apps demonstrating the integration of Firebase with Flutter. The final goal is to c

Souvik Biswas 186 Dec 24, 2022
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
Examples showing how to use Rid in order to build Dart/Flutter apps integrated with Rust.

Examples showing how to use Rid in order to build Dart/Flutter apps integrated with Rust.

Thorsten Lorenz 205 Dec 24, 2022
Learn how to incorporate Firebase into our Flutter apps

Flash Chat ⚡️ Our Goal The objective of this tutorial is to learn how to incorporate Firebase into our Flutter apps. We'll be using Firebase Cloud Fir

null 0 Oct 27, 2021
Cooking apps - Cooking App made using flutter framework

cooking_apps Cooking App made using flutter framework. This template app contain

Viraj Shah 1 Jan 24, 2022
Mongolian vertical script widgets for Flutter apps

mongol This library is a collection of Flutter widgets for displaying traditional Mongolian vertical text. The primary widgets include: MongolText: ve

null 56 Dec 12, 2022
Easy and Fast internationalization for your Flutter Apps

Easy and Fast internationalization for your Flutter Apps Why easy_localization? ?? Easy translations for many languages ?? Load translations as JSON,

Aye7 672 Dec 18, 2022
fl_heatmap - A heatmap build for Flutter apps

fl_heatmap - A heatmap build for Flutter apps

Timo Bähr 6 Sep 19, 2022