google-pay / flutter-plugin

Apache License 2.0
145 stars 129 forks source link

pay 1.1.0 attempts to access "minimumButonWidth" and pay-ios 1.0.9 "minimumButtonWidth" on RawApplePayButton #237

Closed np-eazy closed 10 months ago

np-eazy commented 10 months ago

which I think is the root cause for the following error on my iOS app when attempting an Xcode build: "../../../.pub-cache/hosted/pub.dev/pay-1.1.0/lib/src/widgets/apple_pay_button.dart:35:38: Error: Member not found: 'minimumButonWidth'."

This typo has only started causing blocking errors when when updating flutter-stripe from 3.0 to 9.0.0^ (my app has not been maintained in months), and I think the build started actually catching it.

What I've tried so far:

Future initializeGooglePayClient() async { String configsString = environment.googlePayPaymentProfile; googlePayClient = Pay({ PayProvider.google_pay: PaymentConfiguration.fromJsonString(configsString) }); }



I'm surprised that I cannot find this error anywhere else on the Internet or StackOverflow. Maybe it's something with my cache. It has been an elusive error that popped up once when I was first learning to set up Flutter to work on this app, but that was fixed by running "flutter clean && flutter pub upgrade && pod update".

Right now I am thinking of forking pay 1.1.0 to manually resolve the typo, but I'm sure there's a better way to do this.
emondd4 commented 10 months ago

Did This Issue Solved?

np-eazy commented 10 months ago

Sorry, forgot to mention that I've resolved this issue. Upgrading pay 1.1.2 was blocked by flutter-svg needing to be 2.0+, which came down to some linking issues that were fixed with changing the flags in the project.pbx file.

That also mostly explains my original user-level error of the Stripe credit card options pop-up not rendering, which prompted the flutter-stripe upgrade/migration; I think the old flutter-svg dependency couldn't support the new payment sheet components, which were effectively invisible but still tappable.