Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexey-nobody/pass-flutter
Simple Flutter package for work with Apple Wallet passes.
https://github.com/alexey-nobody/pass-flutter
dart dartlang flutter flutter-package flutter-plugin
Last synced: 2 months ago
JSON representation
Simple Flutter package for work with Apple Wallet passes.
- Host: GitHub
- URL: https://github.com/alexey-nobody/pass-flutter
- Owner: alexey-nobody
- License: mit
- Created: 2020-02-14T07:25:51.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-08-09T09:24:09.000Z (over 1 year ago)
- Last Synced: 2024-05-04T18:40:54.884Z (9 months ago)
- Topics: dart, dartlang, flutter, flutter-package, flutter-plugin
- Language: Dart
- Homepage: https://pub.dev/packages/pass_flutter
- Size: 274 KB
- Stars: 21
- Watchers: 2
- Forks: 21
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
![Flutter GitHub Actions](https://github.com/alexeynobody/pass-flutter/workflows/Flutter%20GitHub%20Actions/badge.svg)
[![Pub Package](https://img.shields.io/pub/v/pass_flutter.svg)](https://pub.dartlang.org/packages/pass_flutter)# pass-flutter
A Flutter library for work with Apple Wallet passes.## How use it
### Getting pass from URL to internal memory
```dart
import 'package:pass_flutter/pass_flutter.dart';PassFile passFile = await Pass().saveFromUrl(url: 'https://link_to_pass/pass.pkpass');
```### Getting list of all saved passes
```dart
import 'package:pass_flutter/pass_flutter.dart';List passes = await Pass().getAllSaved();
```### Fetch preview from url and save it
```dart
import 'package:pass_flutter/pass_flutter.dart';PassFile passFile = await Pass().fetchPreviewFromUrl(url: 'https://link_to_pass/pass.pkpass');
passFile.save();
```or delete it
```dart
import 'package:pass_flutter/pass_flutter.dart';PassFile passFile = await Pass().fetchPreviewFromUrl(url: 'https://link_to_pass/pass.pkpass');
passFile.delete();
```### Delete pass file from internal memory
```dart
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);
```OR
```dart
passFile.delete();
```## 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](https://github.com/alexeynobody/pass-flutter/blob/master/CHANGELOG.md) to get all release notes.