flutter_wallet_card 4.0.4 copy "flutter_wallet_card: ^4.0.4" to clipboard
flutter_wallet_card: ^4.0.4 copied to clipboard

Flutter wallet card plugin for iOS and Android. Generate Apple Wallet passes and Google Wallet cards from local files or web URLs.

example/lib/main.dart

import 'package:flutter/cupertino.dart';
import 'package:flutter_wallet_card_example/pass.dart';

void main(List<String> args) {
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return CupertinoApp(
      home: CupertinoPageScaffold(
        navigationBar: CupertinoNavigationBar(
          middle: const Text('Flutter Wallet Card Example'),
        ),
        child: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              const Text('Apple wallet cards using URL'),
              const SizedBox(height: 5),
              CupertinoButton.filled(
                onPressed: () => generateWalletPassFromUri(exampleUrl),
                child: Text('Add apple pass'),
              ),
              const SizedBox(height: 20),
              const Text('Apple wallet cards using File Path'),
              const SizedBox(height: 5),
              CupertinoButton.filled(
                onPressed: () => generateWalletPassFromPath(),
                child: Text('Add apple pass (from path)'),
              ),
              const SizedBox(height: 20),
              const Text('iOS Enhanced Features'),
              const SizedBox(height: 5),
              CupertinoButton.filled(
                onPressed: () => validatePassFile(),
                child: Text('Validate Pass File'),
              ),
              const SizedBox(height: 10),
              CupertinoButton.filled(
                onPressed: () => checkPassValidity(),
                child: Text('Check Pass Validity'),
              ),
              const SizedBox(height: 10),
              CupertinoButton.filled(
                onPressed: () => getPassInformation(),
                child: Text('Get Pass Information'),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
42
likes
150
points
2.44k
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter wallet card plugin for iOS and Android. Generate Apple Wallet passes and Google Wallet cards from local files or web URLs.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

archive, crypto, dio, equatable, flutter, json_annotation, path, path_provider, uuid

More

Packages that depend on flutter_wallet_card

Packages that implement flutter_wallet_card