सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
Flutter Wallet Card एक प्लगइन है जो iOS और Android ऐप्स को स्थानीय फ़ाइलों या वेब URL के उपयोग से Apple Wallet पास और Google Wallet कार्ड बनाने की अनुमति देता है। यह Flutter एप्लिकेशन में डिजिटल वॉलेट के एकीकरण को सरल बनाता है, जिससे उपयोगकर्ता टिकट, बोर्डिंग पास, लॉयल्टी कार्ड आदि को ऐप से सीधे जोड़ सकते हैं। प्लगइन दोनों प्लेटफ़ॉर्म के लिए समर्थित है और प्लेटफ़ॉर्म चैनल के माध्यम से मूल वॉलेट API का उपयोग करता है। यह छोटे सेटअप के साथ निरंतर डिजिटल वॉलेट इंटरैक्शन की आवश्यकता वाले ऐप्स के लिए उपयुक्त है।
उपयोग
Apple Wallet में लॉयल्टी कार्ड जोड़ना
यात्रा ऐप्स के लिए बोर्डिंग पास जनरेट करना
टिकटिंग ऐप्स के लिए इवेंट टिकट बनाना
डिजिटल गिफ्ट कार्ड सक्षम करें
फिटनेस ऐप में सदस्यता कार्ड का समर्थन
मुख्य विशेषताएँ
Apple Wallet और Google Wallet का समर्थन करता है
स्थानीय फ़ाइलों या URL से पास उत्पन्न करता है
क्रॉस-प्लेटफ़ॉर्म (iOS और Android)
पास उत्पादन के लिए सरल API
सुरक्षित फ़ाइल प्रबंधन
प्लेटफॉर्म चैनल एंटीग्रेशन
इनके लिए उपयुक्त
यात्रा और घटना ऐप्स
खुदरा और लॉयल्टी कार्यक्रम
फिटनेस और सदस्यता सेवाएं
डिजिटल टिकटिंग प्रणाली
मोबाइल बैंकिंग और भुगतान ऐप्स
विचार योग्य बातें
सही पास फ़ाइल स्वरूप की आवश्यकता होती है
Apple Wallet के लिए मान्य प्रमाणपत्र की आवश्यकता होती है
Google Wallet एकीकरण के लिए विशिष्ट सेटअप की आवश्यकता होती है
समर्थित पास प्रकारों तक सीमित
फ़ाइल आकार और प्रारूप सीमाएं लागू होती हैं
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
Flutter Wallet Card
A comprehensive Flutter plugin for creating and managing wallet cards on both iOS (Apple Wallet) and Android (Google Wallet). This plugin provides a unified API for generating, adding, and managing wallet passes across platforms.
Features
Cross-Platform Support
iOS: Full Apple Wallet (Passkit) integration
Android: Google Wallet integration
Unified API: Single codebase for both platforms
Card Operations
✅ Check wallet availability
✅ Add cards to wallet
✅ Check if card is already added
✅ View cards in wallet
✅ Generate card files from data
✅ Parse existing card files
✅ Download cards from URLs
Card Types Supported
Generic Cards: General purpose cards
Boarding Passes: Flight tickets
Coupons: Discount and promotional cards
Event Tickets: Concert, sports, and event passes
Store Cards: Loyalty and membership cards
Advanced Features
🎨 Custom colors and styling
📍 Location-based relevance
📅 Date-based relevance
🔒 Secure certificate signing (iOS)
🌐 Network download support
🧪 Comprehensive test coverage
Installation
Add this to your package's pubspec.yaml file:
dependencies:flutter_wallet_card:^5.0.0
Then run:
flutter pub get
Platform Setup
iOS Setup
Enable Wallet capability in your iOS project:
Open ios/Runner.xcworkspace in Xcode
Select your target → Signing & Capabilities
Add "Wallet" capability
Configure your Apple Developer account:
Create a Pass Type ID in Apple Developer Console
Generate certificates for pass signing
Android Setup
Add Google Wallet API to your project:
Enable Google Wallet API in Google Cloud Console
Configure OAuth 2.0 credentials
Ensure your app uses play-services-pay (automatically included by the plugin):
// Generate a card file for sharing or storageFile cardFile = awaitFlutterWalletCard.generateCardFile(card);
print('Card file created at: ${cardFile.path}');
Adding Cards from URLs
// Download and add a card from a URLtry {
bool success = awaitFlutterWalletCard.addFromUrl(
'https://example.com/mycard.pkpass',
);
print('Card added: $success');
} catch (e) {
print('Failed to add card from URL: $e');
}
Parsing Existing Card Files
// Parse a wallet card from a local fileWalletCard card = awaitFlutterWalletCard.parseFromFile(File('/path/to/card.pkpass'));
print('Card title: ${card.metadata.title}');
Platform-Specific Features
// iOS: Add multiple cards at onceif (Platform.isIOS) {
List<WalletCard> cards = [card1, card2, card3];
bool success = awaitFlutterWalletCard.addMultipleToWallet(cards);
}
// Android: Save pass with JWTif (Platform.isAndroid) {
String jwt = 'your-google-wallet-jwt';
bool success = awaitFlutterWalletCard.savePassWithJwt(jwt);
// Create a pass linkString link = awaitFlutterWalletCard.createPassLink({
'objectId': 'your-object-id',
});
}