alexey-nobody / pass-flutter Goto Github PK
View Code? Open in Web Editor NEWSimple Flutter package for work with Apple Wallet passes.
Home Page: https://pub.dev/packages/pass_flutter
License: MIT License
Simple Flutter package for work with Apple Wallet passes.
Home Page: https://pub.dev/packages/pass_flutter
License: MIT License
are you working on that feature where we can add loyalty card into apple wallet?
Example current color parsed value:
rgb(0, 0, 0)
Hello, I see that this package supports Android as well, but I didn't see how. On what App does it add the passkit entries? Does it work with google wallet?
Thanks!
Could not cast value of type '__NSArrayM' (0x1f397f190) to 'FlutterStandardTypedData' (0x1f397f178).
2022-02-09 00:44:14.720718+0500 Runner Dev[2961:154000] Could not cast value of type '__NSArrayM' (0x1f397f190) to 'FlutterStandardTypedData' (0x1f397f178).
__pthread_kill + 8 libsystem_kernel.dylib
__pthread_kill:The last version is failing with the error "The plugin pass_flutter
doesn't have a main class defined in /Users/fede/.pub-cache/hosted/pub.dartlang.org/pass_flutter-1.2.1/android/src/main/java/com/alexeynobody/pass_flutter/PassFlutterPlugin.java or /Users/fede/.pub-cache/hosted/pub.dartlang.org/pass_flutter-1.2.1/android/src/main/kotlin/com/alexeynobody/pass_flutter/PassFlutterPlugin.kt. This is likely to due to an incorrect androidPackage: com.alexeynobody.pass_flutter
or mainClass
entry in the plugin's pubspec.yaml.
If you are the author of this plugin, fix the androidPackage
entry or move the main class to any of locations used above. Otherwise, please contact the author of this plugin and consider using a different plugin in the meanwhile."
Please, tell me if you need more information about this error.
Thank you.
Add ability to see the styling and alignment in the Fields. JSON structure of pass.json looks like this:
Date style
"auxiliaryFields" : [
{
"key" : "expiryDate",
"dateStyle" : "PKDateStyleShort",
"label" : "Expiry Date",
"value" : "2013-12-31T00:00-23:59"
}
],
Text alignment:
"secondaryFields": [
{
"key": "TicketTitle",
"label": "2 Karten für",
"textAlignment": "PKTextAlignmentLeft",
"value": "A Quiet Place 2"
}
],
Right now, only 4 props can be accessed. Idea:
Add new fields to the Field object:
const Fields({
required this.key,
required this.value,
this.label,
this.changeMessage,
this.dateStyle,
this.textAlignment,
});
/// Required. The key must be unique within the scope of the entire pass. For example, “departure-gate.”
final String key;
/// Optional. Label text for the field.
final String? label;
/// Required. Value of the field, for example, 42.
final String value;
/// Optional. Format string for the alert text that is displayed when the pass is updated.
/// The format string must contain the escape %@, which is replaced with the field’s new value.
/// For example, “Gate changed to %@.”
/// If you don’t specify a change message, the user isn’t notified when the field changes.
final String? changeMessage;
/// Optional.
final String textAlignment;
/// Optional
final String dateStyle;
/// Convert to json
Map<String, dynamic> toJson() => _$FieldsToJson(this);
@override
List<Object?> get props => [key, label, value, changeMessage, textAlignment, dateStyle];
Killed couple of days by figuring this out
Hello,
Once Flutter introduces null-safety as it's stable branch, issues popped out.
I just made simple fork with fixes -> if You want You can use them in order to bump this package.
in Some case when I generate Event pass from https://www.passsource.com/ the labelColor
comes null so
_convertToColor method throw excetion
It can be solved by adding
static Color _convertToColor(String rgbCssColor) {
if (rgbCssColor == null) {
return Color.fromRGBO(255, 255, 255, 1);
}
...
}
Is there a way to add a nfc card to pass that have specific data to open doors that works on rfid
Hi, Thank you for doing hardwork and provide this library. Unfortunately I am not yet succeeded to run the application with this dependency.
Here below is the log:
Launching lib/main.dart on iPhone 11 Pro in debug mode...
Running pod install... 0.7s
CocoaPods' output:
↳
Preparing
Analyzing dependencies
Inspecting targets to integrate
Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)
Finding Podfile changes
A pass_flutter
A path_provider
A path_provider_macos
- Flutter
Fetching external sources
-> Fetching podspec for `Flutter` from `Flutter`
-> Fetching podspec for `pass_flutter` from `.symlinks/plugins/pass_flutter/ios`
[!] No podspec found for `pass_flutter` in `.symlinks/plugins/pass_flutter/ios`
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/external_sources/path_source.rb:14:in `block in fetch'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/external_sources/path_source.rb:11:in `fetch'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/analyzer.rb:901:in `fetch_external_source'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/analyzer.rb:880:in `block (2 levels) in fetch_external_sources'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/analyzer.rb:879:in `each'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/analyzer.rb:879:in `block in fetch_external_sources'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/analyzer.rb:878:in `fetch_external_sources'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/analyzer.rb:117:in `analyze'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:410:in `analyze'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:234:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:233:in `resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:156:in `install!'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/command/install.rb:52:in `run'
/Library/Ruby/Gems/2.3.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:22:in `load'
/usr/local/bin/pod:22:in `<main>'
Error output from CocoaPods:
↳
[!] Automatically assigning platform `iOS` with version `8.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See
`https://guides.cocoapods.org/syntax/podfile.html#platform`.
Error running pod install
Error launching application on iPhone 11 Pro.
I tried reinstall pod and update pod but seems nothing works.
It looks like this plugin is not able to create/run pod file while fetching external sources in my app.
Let me know if there is solution for that.
Doctor report:
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel unknown, v1.12.13+hotfix.9, on Mac OS X 10.14.6 18G5015, locale en-GB)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 11.3)
[✓] Android Studio (version 3.5)
[✓] Connected device (2 available)
! Doctor found issues in 1 category.
Hello. I am using this package, and I managed to get pass from URL. Everything looks fine except the colors.
The passFile.pass.backgroundColor, the foregroundColor and the labelColor are all white(rgb(255, 255, 255)) but they should be colored. Can anyone help me please?
Great work! It would be nice if you can add support for Google Android too.
https://developers.google.com/pay/passes/guides/pass-verticals/pass-template?vertical=boarding-passes#android_2
I'm getting this error after ZipDecoder().decodeBytes(passArchive)
. I tried with several pkpasses of different companies and get the same error every time.
I'm testing it on Android, should the plugin work on Android too?
Hello
In Xcode im added certificate to wallet.
When im take url to .pkpass
, I use Pass().saveFromUrl
, and yes, pass saved to internal memory, but im thinking that's it must be added to Apple Wallet.
Or I must do something more ?
Thanks
As already meantioned in #20
A feature where you can add directly with this package into the wallet app would be awesome.
Although marked as optional in the PassJson object, the call to the constructor in _$PassJsonFromJson
expects an explicit value. Since a Color cannot be constructed from NULL
, it fails.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.