Android App Development
iOS App Development
Flutter App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!
Deniel Kerr
Founder. Opencart
Top Partners
Updated 28 April 2023
Nowadays in most of the mobile app, it required login. And to log in, we need to signup first, filling the long-form. But we can log in to the app through a Social account, then we don’t need to fill a long form to register into the app. Google Sign in Flutter is one of the ways to log in.
Our Flutter app development company also provides various Social Login compatibility for mobile apps.
In today’s blog, we will see how we can implement Google Sign in Flutter.
Step1: Register your android application in Firebase from the link.
Step2: Enable the OAuth APIs that you want, using the Google Cloud Platform API manager.
Note: Please fill all required fields in the console for OAuth consent screen. Else you might get APIException errors.
Step1: Register your iOS application in Firebase from the link.
Step2: Download GoogleService-Info.plist file, and add in Runner target.
Step3: Add below code in [my_project]/ios/Runner/Info.plist file.
[my_project]/ios/Runner/Info.plist
Step1: Add below code in package’s pubspec.yaml and run pub get.
Step2: Import the package in your dart code.
Step3: Initialize the GoogleSignIn.
Step4: Use the following code to authenticate in your Dart code.
Please check below the complete code for main.dart file.
Finally run your code and check the result.
Thanks for reading 🙂
For more interesting blogs check out here – https://mobikul.com/blog/
Your email address will not be published. Required fields are marked*
Name*
Email*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies. Learn more about privacy policy
Name
Email
Subject
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.