-
-
Notifications
You must be signed in to change notification settings - Fork 546
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
CardField crash on Flutter(android) #1597
Comments
got the same issue. did you find solution ? @punitsamcom84 |
did you add
I do not think there is much I can do about it as it looks like an issue in flutter itself |
@remonh87 yes i already add this ### WidgetsFlutterBinding.ensureInitialized(); main.dart : import 'package:flutter/material.dart'; void main() async{ class MyApp extends StatelessWidget { // This widget is the root of your application. class MyHomePage extends StatelessWidget{ } payment_card.dart import 'package:flutter/cupertino.dart'; class paymentCard extends StatefulWidget{ class _paymentCardState extends State { @OverRide @OverRide
} android version : 12 |
@punitsamcom84 try on real device.. |
@remonh87 my issue fixed!! it was due to wrong navigation |
@punitsamcom84 make sure to also add the stripe intialisation as I cannot see this in your code sample. See flutter_stripe/example/lib/main.dart Line 9 in f6f997b
|
I am also having issue when i navigate to next screen from card screen. Can you explain me how you fix it? |
@Anonymousgaurav I am testing on a real device but didn't work for me. |
The error indicates a crash in your Flutter application on Android, specifically related to handling text input.
} |
Try to add
inside android folder in manifest.xml file under implementation "androidx.emoji2:emoji2:1.4.0" |
@Anonymousgaurav how did you solved this error? |
i used flutter_stripe: ^10.0.0
this is code:
class paymentCard extends StatefulWidget{
@OverRide
State createState() => _paymentCardState();
}
class _paymentCardState extends State {
@OverRide
Widget build(BuildContext context) {
return CardField(
onCardChanged: (card) {
}
}
this is error:
E/flutter ( 7153): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:651:7)
E/flutter ( 7153): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:322:18)
E/flutter ( 7153):
E/flutter ( 7153): #2 ExpensiveAndroidViewController._sendCreateMessage (package:flutter/src/services/platform_views.dart:1081:5)
E/flutter ( 7153):
E/flutter ( 7153): #3 AndroidViewController.create (package:flutter/src/services/platform_views.dart:804:5)
E/flutter ( 7153):
The text was updated successfully, but these errors were encountered: