Skip to content
pubscout

google_sign_in_dartio

0.3.0, released 3 years ago by long1.eu

Pure‑Dart Google Sign‑In for Flutter, usable on mobile and desktop.

$ flutter pub add google_sign_in_dartio
Source repository

What it does

Provides a GoogleSignIn implementation that works on all Flutter platforms, including desktop, by handling OAuth flows in Dart. It can register a client ID and optional code‑exchange endpoint, and stores credentials via a custom Store.

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

Use it when

  • Need Google Sign‑In on desktop or web‑like environments where native plugins are unavailable
  • Want a single package that works across all Flutter platforms without platform‑specific plugins

Skip it when

  • Using FirebaseAuth with the standard google_sign_in plugin
  • Running on older Flutter versions that lack desktop support

Strengths

  • Pure Dart, no native platform code
  • Supports custom credential storage
  • Allows code‑exchange endpoint for long‑lived tokens
  • Compatible with existing google_sign_in API

Weaknesses

  • Requires manual registration of client ID
  • Limited to OAuth flows; no support for other auth providers
  • Not as battle‑tested as the official plugin

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
10

Add dependency, call GoogleSignInDart.register(clientId: …) before runApp, optionally provide exchangeEndpoint

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

void main() {
  if (isDesktop) {
    GoogleSignInDart.register(clientId: '<clientId>');
  }
  runApp(MyApp());
}

Alternatives

Packages that do the same job and could replace google_sign_in_dartio.

Works with

Packages commonly used together with google_sign_in_dartio: ones it builds on, ones built on it, and its own family.