Giter Site home page Giter Site logo

cbonello / flutter_starter_app Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 1.0 1.33 MB

Flutter starter app providing sign-up, sign-in and sign-out functionnalities. Android, Flutter web and BLoC for state management.

License: MIT License

Kotlin 0.24% Swift 0.23% Objective-C 0.02% Dart 97.51% JavaScript 0.46% HTML 0.94% Shell 0.60%
dart2 flutter firebase-authentication freezed password-reset bloc-pattern flutter-web email-verification

flutter_starter_app's Introduction

Flutter Starter App (BLoC pattern)

build codecov License: MIT

A Flutter starter project that contains splash, sign in, sign up, password reset and email verification. it uses Firebase for authentication and the BLoC pattern (flutter_bloc library) for state management.

Project was only tested on Android and the web (online demo).

Features

  • Sign In (email + password or Google Sign-In).
  • Sign Up.
  • Password reset.
  • Email verification.
  • Firebase Analytics.
  • Flutter web support.

Setup

lib/src/configuration.dart allows you to quickly enable/disable options.

  • kUseGoogleASignIn: Google Sign-In; not supported for Flutter web as of now.
  • kUseFirebaseAnalytics: Firebase Analytics; not supported for Flutter web as of now.
  • kUseFlutterBlocObserver: Flutter_bloc oberver.

Steps

  1. Create a Firebase project in the Firebase Console and add an Android app to the project. Please follow the installation instructions from the Firebase Auth package.
  2. In the Firebase console, enable Email/Password authentication by doing: Authentication > SIGN-IN METHOD > Email/Password > Enable > SAVE
  3. In the Firebase console, enable Google authentication by doing: Authentication > SIGN-IN METHOD > Google > Enable > SAVE
  4. In the Firebase console, update the email address verification template by doing: Authentication > TEMPLATES > Email address verification
  5. In the Firebase console, update the password reset template by doing: Authentication > TEMPLATES > Password reset

Additional Steps for Flutter Web

Important: You need the latest version of the Flutter SDK from the beta channel to compile this project. See Building a web application with Flutter.

  1. Add web support by running (restart your IDE aftert running the command):
flutter config --enable-web
  1. Rename web/SAMPLE_firebase.js as web/firebase.js and update its content with the Firebase SDK snippet from the Firebase Console (see Resources).
  2. Follow the instructions from google_sign_in_web README and include your OAuth ID to web/index.html, line 42.
  3. Check this stackoverflow thread if you encounter the “Browser or app may not be secure. Try using a different browser.” error with Google Sign-In.

Resources

Screenshots

Sign In Screen Sign Up Screen
Sign In Screen Sign Up Screen
Password Reset Screen Home Screen
Sign In Screen Sign Up Screen

Learn More on Flutter

Here are a few resources to get you started if you are new to Flutter:

General Resources

Created & Maintained by

Christophe Bonello (LinkedIn) (Twitter)

Contribution Guidelines

This project is a fully open source project, and contributions are welcome.

License

Copyright (c) 2020 Christophe Bonello

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

flutter_starter_app's People

Contributors

cbonello avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

tore93

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.