-
-
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
Focus issue with card view #14
Comments
@jonasbark can you provide me some reprosteps? I am not sure I understand what you mean with this |
Open any screen with a card, tap into the card view itself and then back and forth to the email field for example. You should notice that sometimes the card view doesn't accept the keyboards input anymore. I think it's something we can fix on the dart side |
This still happens with the changes included from latest PR device-2021-04-18-172045.mp4 |
@jonasbark @jamesblasco Could either of you confirm for me that this issue is currently fixed with flutter master? I've switched to both flutter dev and flutter master and added the plugin using a git reference to my pubspec, and am still experiencing the keyboard switching issue mentioned and shown in a video in #135. The keyboard also still changes focus back to the card number when trying to enter the expiration date with the card number incomplete. I did not however run into the problem shown above #14 (comment) flutter_stripe:
git:
url: git@github.com:flutter-stripe/flutter_stripe.git
path: packages/stripe
ref: e7aa625
We can't use the payment sheet (unless I'm misunderstanding) because we need to use setup intents in order to offer promo codes with 100% discount at the beginning of subscriptions. And because we function in Europe we have to be able to handle 3D secure which doesn't work with the old flutter stripe payment plugin jonasbark/flutter_stripe_payment#253 |
I can confirm that it worked when I tried flutter from the master channel - I'm not sure if they might have reverted the flutter fix by now. |
@jonasbark I updated my pubspec to use the main branch here. Here is the main issue I'm seeing but maybe it is a separate issue:
|
Which flutter version do you use exactly? |
@jonasbark Right now I'm on the flutter master branch which is 2.3.0-17.0.pre.417 and I also tried the dev sdk which looks to be at 2.3.0-24.0.pre when I tried it.
I'm seeing this in the logs when the view appears
And this after each number is entered
|
Just tested it again, works as expected on
and my Android 10 test device |
@jonasbark Flutter 2.3.0-24.1.pre • channel beta • https://github.com/flutter/flutter.git face the same issue mentioned above by @bradsb |
Does the example app from this repository show the same issue for you? |
@jonasbark do you know if this has been addressed on the flutter_stripe side as well or is the only current solution to use Flutter 2.3.0? I'm currently on Flutter 2.2.2 and haven't been able to find a workaround |
@hoangtrinhtiki in the last months the issue was exactly the wrong type of keyboard shown, different from the expected (numeric keyboard) |
I think this (wrong keyboard type) is fixed with the launch of flutter 2.5.0 ( works for me at least, with flutter 2.5.0), but the other focus issues still remain. |
We finally got a response on flutter/flutter#86480 but unfortunately the suggested fix did not resolve the issue I was seeing (Cannot type in I've opened a PR with the suggested fix anyway in case it resolves any of the other problems described by others in this thread (#365). If anyone would like to test the fix against their own issues, try building with this version of the package:
|
* apply change from flutter/flutter#86480 (comment) * remove unnecessary focus workarounds * Fix issue #14 * revert pubspec change
Good news everyone - this issue has been fixed and a new version will be published by the end of this week! |
* sync with Stripe React Native v0.2.2 * adjust Card Form Field parameters to match the available options * Update iOS binding to RN 0.2.2 * Focus fix (#366) * apply change from flutter/flutter#86480 (comment) * remove unnecessary focus workarounds * Fix issue #14 * revert pubspec change * prepare next release * BREAKING: disable wechat pay as of https://github.com/stripe/stripe-ios/blob/master/CHANGELOG.md#2181-2021-08-10 * add openApplePaySetup * remove beta references and bump to 2.0.0 Co-authored-by: Jaime Blasco <git@jaimeblasco.com> Co-authored-by: Remon <remon@hey.com>
@jonasbark It seems the fix was only done in CardField and not in CardFormField (#366). You can see that you are still unable to type on Android if you navigate to the Card Payments -> Simple - Using Webhooks in the example app and type in the email field and then navigate to the Card Payments -> Card Form and try to type in the field. |
The fix has also been applied to the CardFormField and it works well for me, even with the steps you added. |
@jonasbark I will open a new issue asap. However, in main with #366 merged, CardField's flutter_stripe/packages/stripe/lib/src/widgets/card_form_field.dart Lines 317 to 333 in 8e48dbb
|
It seems not fixed even in the latest version 2.0.1, still keyboard type is alphanumeric |
@infazA upgrade your Flutter version - it still falls back to alpha on old versions. |
Thanks for the suggestion, working as expected. |
It works better now, but it still has some weird behaviour on Android, iOS is just fine. You can see a video here: https://photos.app.goo.gl/ya85HzZtPwtWC1Ru8 |
CardField works for me but CardFormField still does not. I've upgraded flutter (today) and am using the most recent version of flutter_stripe. Can anyone help? Among (many) other things, I see this line in the terminal after it fails: E/flutter ( 4672): Caused by: java.lang.IllegalArgumentException: The style on this component requires your app theme to be Theme.MaterialComponents (or a descendant). |
* Fix flutter-stripe/flutter_stripe#14 * update readmes, fix typo
* sync with Stripe React Native v0.2.2 * adjust Card Form Field parameters to match the available options * Update iOS binding to RN 0.2.2 * Focus fix (#366) * apply change from flutter/flutter#86480 (comment) * remove unnecessary focus workarounds * Fix issue flutter-stripe/flutter_stripe#14 * revert pubspec change * prepare next release * BREAKING: disable wechat pay as of https://github.com/stripe/stripe-ios/blob/master/CHANGELOG.md#2181-2021-08-10 * add openApplePaySetup * remove beta references and bump to 2.0.0 Co-authored-by: Jaime Blasco <git@jaimeblasco.com> Co-authored-by: Remon <remon@hey.com>
Every other attempt to write into the native card view fails, at least on Android - it might be fixed with the FocusNode adjustment that currently happens on the native side made by @jamesblasco for iOS
Otherwise it needs to be investigated on on the Android side
The text was updated successfully, but these errors were encountered: