Skip to content

Commit

Permalink
Fix #1627 change button style apple pay button
Browse files Browse the repository at this point in the history
  • Loading branch information
Remon committed Apr 14, 2024
1 parent 7f95fcb commit 0c2ef24
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion example/ios/Flutter/AppFrameworkInfo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>11.0</string>
<string>12.0</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1430;
LastUpgradeCheck = 1510;
ORGANIZATIONNAME = "";
TargetAttributes = {
59D21C0B270B725C007DE134 = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>

Check warning on line 1 in example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

View workflow job for this annotation

GitHub Actions / Typo CI

Filename: example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

"xcscheme" in the filename is a typo. Did you mean "scheme"?

Check warning on line 1 in example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

View workflow job for this annotation

GitHub Actions / Typo CI

Filename: example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

"xcschemes" in the filename is a typo. Did you mean "schemes"?

Check warning on line 1 in example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

View workflow job for this annotation

GitHub Actions / Typo CI

Filename: example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

"xcshareddata" in the filename is a typo. Did you mean "sharecropped"?
<Scheme
LastUpgradeVersion = "1430"
LastUpgradeVersion = "1510"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 1 addition & 1 deletion packages/stripe/lib/src/widgets/apple_pay_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ class _UiKitApplePayButtonState extends State<_UiKitApplePayButton> {
if (widget.style != oldWidget.style || widget.type != oldWidget.type) {
methodChannel?.invokeMethod('updateStyle', {
'type': widget.type.id,
'style': widget.style.id,
'buttonStyle': widget.style.id,
});
_updateHandlers();
}
Expand Down
4 changes: 2 additions & 2 deletions packages/stripe_ios/ios/Classes/ApplePayButtonView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class ApplePayButtonView: NSObject, FlutterPlatformView {
onOrderTrackingAction = onOrderTracking
if let arguments = args as? Dictionary<String, AnyObject> {
type = arguments["type"] as? NSNumber
buttonStyle = arguments["style"] as? NSNumber
buttonStyle = arguments["buttonStyle"] as? NSNumber
borderRadius = arguments["borderRadius"] as? NSNumber
}
// iOS views can be created here
Expand Down Expand Up @@ -114,7 +114,7 @@ class ApplePayButtonView: NSObject, FlutterPlatformView {
case "updateStyle":
if let arguments = call.arguments as? Dictionary<String, AnyObject> {
self.type = arguments["type"] as? NSNumber
self.buttonStyle = arguments["style"] as? NSNumber
self.buttonStyle = arguments["buttonStyle"] as? NSNumber
self.borderRadius = arguments["borderRadius"] as? NSNumber
}

Expand Down

0 comments on commit 0c2ef24

Please sign in to comment.