Flutter app world logo
  • Home
  • Flutter App
    • UI
    • ads
    • Timeline
    • Widgets
    • Plugin
    • Games
    • library
    • Templates
    • Maps
    • Timeline
    • clock
    • Animation
    • packages
  • Dart
  • Marketplace

Flutter Google Sign In using Firebase

 December 15, 2019   Plugin, Sign in

In this app, I have implemented Google Sign In using Firebase for both Android and iOS, fixing all the issues with the latest Flutter updates. To understand how to fix all the Firebase issues in Flutter make sure you check out my Medium article.

Flutter 1.7 updates

With the introduction of Flutter 1.7, the most frustrating thing fixing AndriodX incompatibilities has been taken care of. Now, you can just create a new project using the --androidx flag to ensure the generated project targets the new support library.

Firebase changes

Now, you need to fill the OAuth consent form in order to use Firebase in your app, otherwise, your app will just crash. So, make sure you check out my Medium article.

Using this app

If you want to clone and use this app, then you have to complete the following steps:

Step 1: Complete the Firebase setup

First of all, complete the whole Firebase setup for both Android and iOS. You will get two files while doing the setup, one for each platform. You have to place the google-services.json & GoogleService-Info.plist files in the respective directory of each platform. For more info, check out my Medium article.

Step 2: Completing the iOS integration

For the iOS part, you have to do one more step. You will find a TODO in Info.plist file, just completes that.

Step 3: Run the app

Now, you can run the app on your device using the command:

flutter run

Screenshots

Plugins

The plugins used in this project are:

  1. “firebase_auth”.
  2. “google_sign_in”.

Add this to your package’s pubspec.yaml file to use Firebase & Google Sign In:

dependencies:
  firebase_auth: ^0.11.1+8
  google_sign_in: ^4.0.4

Import using:

import 'package:firebase_auth/firebase_auth.dart';
import 'package:google_sign_in/google_sign_in.dart';

License

Copyright (c) 2019 Souvik Biswas

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.

Download Flutter Google Sign In using Firebase Source Code on GitHub

"Login Demo" app which shows how to use google sign in Android and iOS using Flutter.
https://github.com/sbis04/sign_in_flutter
84 forks.
203 stars.
0 open issues.

Recent commits:
  • Update README.md, GitHub
  • Archive info, GitHub
  • update sample notes, Souvik Biswas
  • Add sample release notes, Souvik Biswas
  • Update yaml, Souvik Biswas

Flutterappworld
Flutterappworld

Provides the list of the opensource Flutter apps collection with GitHub repository.

<< Using Bluetooth plugin in Flutter Flutter app for WearOS >>

Flutter App Templates

Flutter App Template

Subscribe

Loading

Recent Posts

  • Flutter Client SDK for LiveKit
  • PrepPDF app provides organised access to previous year question papers and solutions
  • The project is a Flutter library for SMS verification codes
  • OpSo – Open Source Programs App
  • Learning app for kids

Categories

  • 3D
  • Admin
  • ads
  • AI
  • Alert
  • Algorithm
  • Analytics
  • Animation
  • Ant
  • API
  • Article
  • Audio
  • Authentication
  • Avatar
  • Backend
  • Badges
  • Bank
  • Barcode
  • Binding
  • Bitcoin Ticker
  • Bitwarden
  • BLoC
  • Blockchain
  • Bluetooth
  • Blur
  • BMI
  • Book
  • Booking
  • Button
  • Cache
  • calculator
  • Calendar
  • Camera
  • canvas
  • Captcha
  • Carousel
  • Carousel
  • Cart
  • Chart
  • chat
  • Chips
  • Choice
  • Class
  • Clipboard
  • Clipper
  • clock
  • Collection
  • Colors
  • Command Line
  • Community
  • Contact
  • Converter
  • Country Code
  • Covid-19
  • Crypto Currency
  • Cupertino
  • Currency
  • Dart
  • Dashboard
  • Database
  • Date & Time
  • Designs
  • Desktop
  • Desktop App
  • Dev Tool
  • Dialog
  • Doctor App
  • Downloader
  • Draw
  • Drawer
  • Dropdown
  • E-Learning
  • ecommerce
  • Editor
  • Education
  • Effect
  • Emoji
  • Encryption
  • Event
  • Exercises
  • Extension
  • Face Detection
  • Facebook
  • Feeds
  • Figma
  • File Manager
  • Files
  • Firebase
  • Flight
  • Floating
  • Flutter App
  • Flutter Card
  • Flutter Desktop
  • Food Ordering
  • Form
  • Framework
  • Furniture
  • Furniture Store
  • Games
  • Generator
  • Geocoding
  • Google Sheets
  • Graphics
  • GraphQL
  • Gravatar
  • grid
  • Grocery
  • Header
  • Health
  • Hooks
  • Http
  • Icons
  • Img
  • Input
  • IoT
  • Javascript
  • Json
  • Keyboard
  • Language Learning
  • Launcher
  • Laundry
  • Layout
  • Library
  • library
  • List
  • ListTile
  • Loader
  • Location
  • Login
  • Machine Learning
  • Mail
  • Maps
  • Marketplace
  • Material Design
  • Media
  • Medical
  • Menu
  • Messenger App
  • Meta Layer
  • Mobx
  • Movie
  • Music Player
  • MVC
  • Navigation
  • Navigation bar
  • Network
  • Neumorphic
  • News
  • Notes App
  • NuBank
  • on-boarding
  • OnBoarding
  • OTP
  • packages
  • Packages
  • Padding
  • Paginating
  • PAGINATION
  • parallax
  • Parser
  • Password
  • Payment Gateway
  • PDF
  • Picker
  • Pie chart
  • Pin Code
  • Pizza
  • Plugin
  • plugin
  • Podcast
  • popup
  • portfolio
  • POS
  • Progress
  • Push Notification
  • QR Code
  • Quiz
  • Radio Component
  • Rating Bar
  • Redux
  • Refresh
  • Remote
  • Render
  • Responsive
  • Rest API
  • Restaurants
  • Ribbon
  • Routing
  • School App
  • Screen
  • Scroll
  • Search
  • Shopping
  • Sidebar
  • Sign in
  • Simulator
  • Skeleton
  • Slider
  • SMS
  • Social Media
  • Solar
  • Splash screens
  • State Management
  • Stickers
  • Stocks Market
  • Streaming
  • SVG
  • Swagger
  • Swipe
  • Switch
  • TabBar
  • Table
  • Tags
  • Task Manager
  • Taxi
  • Templates
  • Testing
  • Text
  • Text Field
  • Theme
  • TikTok
  • Time Tracking
  • Timeline
  • Timelines
  • Toast
  • Todo
  • Toggle
  • Tools
  • Transition
  • Translator
  • Transport
  • Travel
  • TV app
  • Twitter
  • UI
  • Uncategorized
  • UX
  • Video
  • Video Conferencing
  • video player
  • Visualization
  • Wallet
  • Wallpapers
  • Watch
  • Weather
  • web app
  • Web Scraping
  • website
  • WeChat
  • Widgets
  • WooCommerce
  • wrapper
  • XML
  • Yoga

  • About US
  • Privacy Policy
  • Submit App
  • Web Stories
    • Free Online Food Delivery Apps for Business
    • Top 5 Flutter Applicatons – Open Source
    • Free Food Ordering App
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT