pass_flutter

Last updated:

0 purchases

pass_flutter Image
pass_flutter Images
Add to Cart

Description:

pass flutter

pass-flutter #
A Flutter library for work with Apple Wallet passes.
How use it #
Getting pass from URL to internal memory #
import 'package:pass_flutter/pass_flutter.dart';

PassFile passFile = await Pass().saveFromUrl(url: 'https://link_to_pass/pass.pkpass');
copied to clipboard
Getting list of all saved passes #
import 'package:pass_flutter/pass_flutter.dart';

List<PassFile> passes = await Pass().getAllSaved();
copied to clipboard
Fetch preview from url and save it #
import 'package:pass_flutter/pass_flutter.dart';

PassFile passFile = await Pass().fetchPreviewFromUrl(url: 'https://link_to_pass/pass.pkpass');
passFile.save();
copied to clipboard
or delete it
import 'package:pass_flutter/pass_flutter.dart';

PassFile passFile = await Pass().fetchPreviewFromUrl(url: 'https://link_to_pass/pass.pkpass');
passFile.delete();
copied to clipboard
Delete pass file from internal memory #
import 'package:pass_flutter/pass_flutter.dart';

Pass pass = Pass();
PassFile passFile = await pass.saveFromUrl(url: 'https://link_to_pass/pass.pkpass');
await pass.delete(passFile);
copied to clipboard
OR
passFile.delete();
copied to clipboard
Contribute #
Please feel free to fork, improve, make pull requests or fill issues.
I'll be glad to fix bugs you encountered or improve the extension.
Changelog #
Refer to the Changelog to get all release notes.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.