Skip to content
pubscout

google_sign_in_all_platforms

2.0.3, released 6 months ago by vishnuworld.com

Google Sign-In plugin supporting all platforms including Windows and Linux desktop.

WASM-ready
$ flutter pub add google_sign_in_all_platforms
Source repository

What it does

Allows users to sign in with their Google accounts across Android, iOS, Web, Windows, macOS, and Linux. On desktop platforms, it utilizes the default browser with existing sessions, while delegating to the official package on mobile and web.

AI-written summary of version 2.0.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need Google Sign-In support on desktop platforms like Windows and Linux.
  • You want a unified Google authentication API across all platforms.

Skip it when

  • You only need to target mobile or web platforms (where the official package is sufficient).
  • You do not want to configure custom OAuth redirect URIs for desktop.

Strengths

  • Brings Google Sign-In to Windows and Linux desktop platforms.
  • Preserves existing browser sessions on desktop.
  • Provides a reactive authentication state stream.

Weaknesses

  • Requires platform-specific OAuth client credentials configuration.
  • Desktop support relies on a local redirect server and browser flow.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
5

Requires setting up Google OAuth credentials and redirect URIs in the Google Cloud Console, along with standard platform configuration for mobile and web.

import 'package:flutter/material.dart';
import 'package:google_sign_in_all_platforms/google_sign_in_all_platforms.dart';

final googleSignIn = GoogleSignIn(
  params: const GoogleSignInParams(
    clientId: 'your-client-id.apps.googleusercontent.com',
    clientSecret: 'your-client-secret',
    scopes: ['openid', 'profile', 'email'],
  ),
);

Alternatives

Packages that do the same job and could replace google_sign_in_all_platforms.

  • google_sign_in

    If you only need official Google Sign-In support for Android, iOS, macOS, and web without desktop Windows/Linux.