Skip to content

fix compile errors for flutter beta#654

Closed
deathcoder wants to merge 1 commit into
flutter-stripe:mainfrom
deathcoder:main
Closed

fix compile errors for flutter beta#654
deathcoder wants to merge 1 commit into
flutter-stripe:mainfrom
deathcoder:main

Conversation

@deathcoder

Copy link
Copy Markdown

closes #652

@remonh87

Copy link
Copy Markdown
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)

@remonh87 remonh87 Mar 27, 2022

Copy link
Copy Markdown
Member

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
Copy Markdown
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