Skip to content
pubscout

add_to_google_wallet

0.0.5, released 2 years ago by thedroidsonroids.com

A Flutter plugin providing the Add To Google Wallet Button widget.

WASM-ready
$ flutter pub add add_to_google_wallet
Source repository

What it does

Provides a widget to easily integrate the Add To Google Wallet feature within a Flutter application. It allows passing configuration for the pass, success/error/cancel callbacks, and locale support.

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

Use it when

  • You want to allow users to add passes or loyalty cards to Google Wallet from your Flutter app.
  • You need a ready-made Add To Google Wallet button widget.

Skip it when

  • You are targeting Apple Wallet exclusively.
  • You do not have a Google Wallet API Issuer account set up.

Strengths

  • Simplifies implementing the Google Wallet button.
  • Includes helpful callbacks for success, errors, and cancellation.

Weaknesses

  • Requires significant prerequisites on the Google Wallet API side.
  • Limited to Android / Google Wallet functionality.

Setup

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

Requires signing up for a Google Wallet API Issuer account, authorizing the app, and creating passes classes and objects on Google's platform.

AddToGoogleWalletButton(
  pass: _examplePass,
  onSuccess: () => _showSnackBar(context, 'Success!'),
  onCanceled: () => _showSnackBar(context, 'Action canceled.'),
  onError: (Object error) => _showSnackBar(context, error.toString()),
)

Alternatives

Packages that do the same job and could replace add_to_google_wallet.

  • wallet

    Alternative library for wallet-related functionalities if not strictly using Google Wallet UI components.

Works with

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