flutter_google_wallet
0.2.1, released 11 months ago by connect-tech.sncf
A Flutter plugin to integrate Google Wallet and save tickets or passes.
What it does
Allows checking Google Wallet availability on a device and saving passes or tickets into the Google Wallet app using an API client and provided button widgets.
AI-written summary of version 0.2.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to add event tickets or passes to Google Wallet on Android devices.
- You want to display the official 'Add to Google Wallet' button inside your Flutter app.
Skip it when
- Your application targets iOS primarily without needing Android Google Wallet integration.
- You need a comprehensive cross-platform digital wallet solution supporting both Apple PassKit and Google Wallet in a single unified API.
Strengths
- Provides pre-built UI components like the 'Add to Google Wallet' button with localization support.
- Easily checks wallet API availability on the target Android device.
Weaknesses
- Limited platform scope (specifically built for Google Wallet on Android).
- Requires manual addition of specific SVG assets and localizations in pubspec and MaterialApp configuration.
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 4
Requires adding specific SVG assets for the Google Wallet buttons to pubspec.yaml and configuring I18nGoogleWallet localizations delegate in MaterialApp.
final flutterGoogleWalletPlugin = FlutterGoogleWalletPlugin();
flutterGoogleWalletPlugin.initWalletClient();
final isAvailable = await flutterGoogleWalletPlugin.getWalletApiAvailabilityStatus();Alternatives
Packages that do the same job and could replace flutter_google_wallet.
- wallet
Alternative package for handling generic digital wallet functionality.
76Compare - apple_passkit
If you need pass management specifically for Apple Wallet instead of Google Wallet.
60Compare
Works with
Packages commonly used together with flutter_google_wallet: ones it builds on, ones built on it, and its own family.
- intlflutter_google_wallet depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- plugin_platform_interfaceflutter_google_wallet depends on itReusable base class for platform interfaces of Flutter federated plugins.
- flutter_svgflutter_google_wallet depends on itRenders Scalable Vector Graphics (SVG 1.1) and precompiled vector graphics in Flutter.