-
-
Notifications
You must be signed in to change notification settings - Fork 541
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
CardFormField's CardFormStyle not working #731
Comments
can you tell me for which platform? |
In both platform, Is there anything which I should additional or something which I missed from my side? |
Also, after confirm payment it's open web hook. Can we restrict that? |
The CardFormStyle doesn't work for me on Android (Xiaomi Mi A2 Lite, Android 9), but works fine on iOS. I'm on the latest flutter_stripe: 3.0.0 version. class _CardField extends StatelessWidget {
const _CardField({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return CardFormField(
style: CardFormStyle(
fontSize: 16,
textColor: AppColors.black,
cursorColor: AppColors.black,
borderColor: AppColors.black,
textErrorColor: AppColors.red,
placeholderColor: AppColors.dividerGrey,
),
autofocus: true,
controller: context.read<CardFormEditController>(),
);
}
} Note that on Android, the behavior of the text input fields when typing in digits is very strange. Environmentflutter --versionFlutter 3.0.0 • channel stable • https://github.com/flutter/flutter.git Framework • revision ee4e09cce0 (8 days ago) • 2022-05-09 16:45:18 -0700 Engine • revision d1b9a6938a Tools • Dart 2.17.0 • DevTools 2.12.2flutter doctor[✓] Flutter (Channel stable, 3.0.0, on macOS 12.3.1 21E258 darwin-arm, locale en-PL) [✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 13.3.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2021.2) [✓] VS Code (version 1.67.1) [✓] Connected device (6 available) [✓] HTTP Host Availability • No issues found! |
Actually, it doesn't seem to work on iOS as well. I changed the textColor property to red and it still displays in black. class _CardField extends StatelessWidget {
const _CardField({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return CardFormField(
style: CardFormStyle(
fontSize: 24,
textColor: AppColors.red,
cursorColor: AppColors.black,
borderColor: AppColors.black,
textErrorColor: AppColors.red,
placeholderColor: AppColors.dividerGrey,
),
autofocus: true,
controller: context.read<CardFormEditController>(),
);
}
} |
#749 will fix the styling on Android but on iOS we need to wait on the Stripe sdk |
I have same issue |
Fixed in version 3.1.0 |
I keep having very strange behavior on Android. I'm using flutter_stripe 3.1.0. Tested both on debug & release. @remonh87 do you happen to know what is that a case? CleanShot.2022-06-15.at.14.41.06.mp4 |
CardFormField new style is not working. Only backgroundColor is changing.
The text was updated successfully, but these errors were encountered: