google_wallet
0.1.1, released 3 years ago by google.dev
Flutter plugin to integrate Google Wallet and save passes via JWT
What it does
Allows Flutter applications to check if the Google Wallet API is available, save passes using a JWT, and display a Google Wallet button widget.
AI-written summary of version 0.1.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to integrate Google Wallet passes into your Android Flutter application.
- You want to provide a native Google Wallet button.
Skip it when
- You are building for iOS (unless handling separately, as this is an Android-focused plugin).
- You need blockchain or crypto wallet features instead of Google Wallet passes.
Strengths
- Provides a dedicated Google Wallet button widget.
- Easy methods to check availability and save passes via JWT.
Weaknesses
- Not an officially supported Google product.
- Requires external setup on Android following Google Wallet guides.
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 1
Requires following the setup guide for Google Wallet on Android in the prerequisites.
import 'package:google_wallet/google_wallet.dart';
final googleWallet = GoogleWallet();
final String jwt = '...';
example() async {
bool? available = await googleWallet.isAvailable();
if (available == true) {
await googleWallet.savePassesJwt(jwt);
}
}Alternatives
Packages that do the same job and could replace google_wallet.
- apple_passkit
Use if you need Apple Wallet integration instead of Google Wallet.
60Compare
Works with
Packages commonly used together with google_wallet: ones it builds on, ones built on it, and its own family.