If you are tired of implementing a long procedure for Google login, such as adding packages, writing login code, adding lazy loading, etc., this package is the best solution for you.

Features

  • Easy integration with Google Sign-In
  • Support for both Android and iOS platforms

Getting started

You need to setup Firebase then enable the authentication Google sign-in method

Inside the terminal of your project add cd android then ./gradlew signingReport or gradlew signingReport

Add SHA-1 and SHA-256 in firebase project

Usage

How to use nagorik_google_login

Default

NagorikGoogleLogin()

Custom

NagorikGoogleLogin(  
  isLoading: isLoading,  
  backgroundColor: Colors.blue,  
  borderColor: Colors.white,  
  foregroundColor: Colors.white,  
  customWidget: Container(),  
),

Here in the customWidget, if you need to show a customized widget then use this otherwise it's not mandatory