You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, when I navigate to the screen, I get the following error:
E/MethodChannel#flutter/platform_views(22645): Failed to handle method call
E/MethodChannel#flutter/platform_views(22645): java.lang.ClassCastException: java.lang.Double cannot be cast to java.lang.Integer
E/MethodChannel#flutter/platform_views(22645): at com.facebook.react.bridge.ReadableMap.getInt(ReadableMap.java:37)
E/MethodChannel#flutter/platform_views(22645): at com.reactnativestripesdk.MappersKt.getIntOrNull(Mappers.kt:315)
E/MethodChannel#flutter/platform_views(22645): at com.reactnativestripesdk.StripeSdkCardView.setCardStyle(StripeSdkCardView.kt:43)
E/MethodChannel#flutter/platform_views(22645): at com.reactnativestripesdk.StripeSdkCardViewManager.setCardStyle(StripeSdkCardViewManager.kt:29)
E/MethodChannel#flutter/platform_views(22645): at com.flutter.stripe.StripeSdkCardPlatformView.<init>(StripeSdkCardPlatformView.kt:35)
E/MethodChannel#flutter/platform_views(22645): at com.flutter.stripe.StripeSdkCardPlatformViewFactory.create(StripeSdkCardPlatformViewFactory.kt:19)
E/MethodChannel#flutter/platform_views(22645): at io.flutter.plugin.platform.PlatformViewsController$1.createAndroidViewForPlatformView(PlatformViewsController.java:146)
E/MethodChannel#flutter/platform_views(22645): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create(PlatformViewsChannel.java:101)
E/MethodChannel#flutter/platform_views(22645): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:59)
E/MethodChannel#flutter/platform_views(22645): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
E/MethodChannel#flutter/platform_views(22645): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/MethodChannel#flutter/platform_views(22645): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:818)
E/MethodChannel#flutter/platform_views(22645): at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#flutter/platform_views(22645): at android.os.MessageQueue.next(MessageQueue.java:335)
E/MethodChannel#flutter/platform_views(22645): at android.os.Looper.loop(Looper.java:183)
E/MethodChannel#flutter/platform_views(22645): at android.app.ActivityThread.main(ActivityThread.java:7656)
E/MethodChannel#flutter/platform_views(22645): at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#flutter/platform_views(22645): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
E/MethodChannel#flutter/platform_views(22645): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
The on-screen keyboard opens up and I see an empty textbox, but I'm unable to type in it. If I replace the CardField with a standard TextField, I get no errors.
Smartphone / tablet
Device: Pixel 4 (emulator)
OS: Android 11 (API 30)
Package version: 1.0.2
Flutter version 2.2.1
The text was updated successfully, but these errors were encountered:
Hello, there is an issue in Flutter that affects the keyboard input and we have been forced to implement it like this. The issue is fixed now on master
We will make the needed changes in our package when the next stable version is released
Not sure what I'm doing wrong. I created a new stateful class and added the following:
However, when I navigate to the screen, I get the following error:
The on-screen keyboard opens up and I see an empty textbox, but I'm unable to type in it. If I replace the CardField with a standard TextField, I get no errors.
Smartphone / tablet
The text was updated successfully, but these errors were encountered: