flutter-stripe / flutter_stripe

Flutter SDK for Stripe.
https://pub.dev/packages/flutter_stripe
928 stars 514 forks source link

[Google Pay] button PlatformPayButton is not trigger only in android #1861

Closed mtiendat closed 2 weeks ago

mtiendat commented 1 month ago

Describe the bug click PlatformPayButton is not trigger when I try to click in test mode even use Real Device. PlatformPayButton To Reproduce return ValueListenableBuilder( valueListenable: Stripe.instance.isPlatformPaySupportedListenable, builder: (context, value, widget) { return value ? Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ const SizedBox( height: 16, ), SizedBox( height: 48, child: PlatformPayButton( type: PlatformButtonType.pay, onPressed: (){}, //not trigger when I tap it ), ), Padding( padding: const EdgeInsets.symmetric(vertical: 8), child: Row( children: [ const Expanded( child: Divider( color: AppColors.textTertiary, ), ), Padding( padding: const EdgeInsets.symmetric(horizontal: 16), child: Text( 'OR', style: TextStyles.footnote.copyWith( color: AppColors.textTertiary, ), ), ), const Expanded( child: Divider( color: AppColors.textTertiary, ), ), ], ), ), ], ) : const SizedBox(); }, )

Expected behavior A clear and concise description of what you expected to happen.

Smartphone

already set theme to Theme.AppCompat and use FlutterFragmentActivity

mtiendat commented 1 month ago

here is video

https://github.com/user-attachments/assets/0b1d1ce5-7598-4230-b380-35c87662b85b

remonh87 commented 3 weeks ago

@jonasbark seems like latest upgrade broke something in the theming on Android can you take a look at this? I can reproduce it on my phone

jonasbark commented 3 weeks ago

Currently on vacation - will be able to have a look sometime next week