-
-
Notifications
You must be signed in to change notification settings - Fork 545
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
CardField widget displaying as blank on Android #1383
Comments
do you know the customers device and android version? To manage expectations I do not think there is much we can do if there is no suitable reproducition step |
Device is in dark mode, switch it and it will show |
@LScodeblack legend, thank you! |
@LScodeblack so thank you, dark mode is definitely the issue, but I imagined that darkmode was just making the text 'white', and the only issue was that the user couldn't see the prompts to type in their card details, but in actual fact it does cause CardField to error as per below.... D/EGL_emulation(27919): app_time_stats: avg=4219.07ms min=4219.07ms max=4219.07ms count=1 Is there an actual fix to this so that it works in Dark mode? |
Also encountered this issue. The Specs: Anything we can do to fix it? Stacktrace breaking CardFormFieldE/flutter (18790): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(error, Binary XML file line #5 in com.signify.lumxpert.dev:layout/stripe_card_form_view: Binary XML file line #5 in com.signify.lumxpert.dev:layout/stripe_card_form_view: Error inflating class , null, android.view.InflateException: Binary XML file line #5 in com.signify.lumxpert.dev:layout/stripe_card_form_view: Binary XML file line #5 in com.signify.lumxpert.dev:layout/stripe_card_form_view: Error inflating class |
Am also facing the same issues here. |
It works on emulators but not on real devices |
This should be fixed from version 9.6.0. |
@remonh87 I'm facing this issue with flutter_stripe: 10.0.0 running only in release mode for android. I have tested also the example app and it's also has the issue. Try running release mode with flutter 3.16.5 and Card Field Themes of the example. Here a video using example app in flutter run --release: IMG_5147.mov |
@kekko7072 cannot see the video. Can you give me more info because for me it runs without issues on my pixel. There should be some logs in logcat |
Sorry @remonh87 here the video and logs. IMG_5148.MOVLogs:
|
Here flutter doctor [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.2) [✓] Chrome - develop for the web [✓] Android Studio (version 2023.1) [✓] VS Code (version 1.85.1) [✓] Connected device (6 available) [✓] Network resources ! Doctor found issues in 1 category. |
@kekko7072 this has to do with the fact that you do not follow the installation guidelines for the theme. Can you make sure you apply these settings and try it again? |
@remonh87 thanks for the response. I tested the example app of the flutter_stripe package and in debug mode it is working but in release mode it's not, like my own app. I followed and added all setup requirements, i think it's something broke in release mode. |
@jonasbark I can reproduce it in the example app. Can you have a look at it? Seems like something broke in the last sync. |
I was able to reproduce it as well, but have not found a solution. Only (bad) workaround would be to disable minification and resource shrinking during release builds:
It's likely a proguard issue, but I have not found the entries to add as of yet. |
Any update? I'm using flutter_stripe: ^10.0.0 but on Android with dark theme the problem persists |
Also looking for an update ASAP |
I am using version 10.1.0 and I have the same problem, both in debug and realase. Any help? I have configured the theme as shown in the example (copy and paste), in build.gradle I have the same versions as in the example but nothing. |
Using v10.1.1, and I have the same issue with the |
@jonasbark do you have an update on this? I remember you took a look at it. |
Same issue, some times I need to add spaces on the top and bottom of CardField widget |
@remonh87 , do you have a resolution for the dark mode issue ? It seems to has persisted for over a year, and remains problematic since our recent installation in flutter. |
I'm pretty sure this is fixed with the recommended |
Describe the bug
Our Flutter app uses: flutter_stripe: ^9.1.1. We use the CardField widget. It has been working perfectly, except we now have a user who has experienced the CardField widget as blank, instead of the little credit card icon, and the hint/label text. We have minimum sdk set as 21. I notice that when I am debugging (and the CardField is working) I still see some items in the debug log as per this link: #219, it doesnt seem to impact the CardField widget for me, but may be the cause of the issue for the user.
To Reproduce
I haven't been able to reproduce the error, but I have attached a screenshot. The user has cleared app cache, uninstalled and reinstalled app, etc, etc. I have added a screenshot of the experience.
Expected behavior
The CardField widget appears normally.
Smartphone / tablet
Additional context
Screenshot attached.
The text was updated successfully, but these errors were encountered: