Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix compile errors for flutter beta #654

Closed
wants to merge 1 commit into from

Conversation

deathcoder
Copy link

closes #652

@remonh87
Copy link
Member

thanks for you contribution. We will integrate a fix once Flutter promotes this change to the stable channel.

val channel = MethodChannel(flutterPluginBinding.binaryMessenger, "flutter.stripe/aubecs_form_field/${viewId}")
val creationParams = args as? Map<String?, Any?>?
return StripeAubecsDebitPlatformView(context, channel, viewId, creationParams, auBECSDebitFormViewManager, sdkAccessor)
return StripeAubecsDebitPlatformView(context!!, channel, viewId, creationParams, auBECSDebitFormViewManager, sdkAccessor)
Copy link
Member

@remonh87 remonh87 Mar 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jonasbark I am not convinced of using !! here. When we integrate a fix I think we should handle a nullable context in the platform views itself + provide a meaningful error message. What do you think?

@remonh87
Copy link
Member

Thanks for the help @deathcoder I integrated the changes in #721 so will close this pr for now

@remonh87 remonh87 closed this May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

stripe-android not compatible with Flutter 2.12.0-4.1.pre (beta)
3 participants