Skip to content
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

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

Closed
mtiendat opened this issue Jul 22, 2024 · 3 comments
Closed

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

mtiendat opened this issue Jul 22, 2024 · 3 comments
Assignees
Labels
needs triage Needs triage

Comments

@mtiendat
Copy link

mtiendat commented Jul 22, 2024

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

  • Device: Samsung S10e
  • OS: Android 13
  • Package version: 10.2.0
  • Flutter version 3.22.2
    Emulator
  • Device:Pixel
  • OS: Android 14
  • Package version: 10.2.0
  • Flutter version 3.22.2

Additional context
these are some version:
plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" id "com.android.application" version '8.4.2' apply false id "com.google.gms.google-services" version "4.4.0" apply false id "org.jetbrains.kotlin.android" version "1.8.10" apply false }
This is log when flutter render the button
java.lang.UnsupportedOperationException: Failed to resolve attribute at index 0: TypedValue{t=0x2/d=0x7c040084 a=-1}, theme={InheritanceMap=[id=0x7c1100a8com.google.android.gms:style/PayButtonDarkTheme], Themes=[com.google.android.gms:style/PayButtonDarkTheme, forced, android:style/Theme.DeviceDefault.Light.DarkActionBar, forced]} View class android.support.v7.widget.AppCompatTextView is an AppCompat widget that can only be used with a Theme.AppCompat theme (or descendant). I/DynamiteModule(10378): Considering local module com.google.android.gms.wallet_dynamite:0 and remote module com.google.android.gms.wallet_dynamite:242632000 I/DynamiteModule(10378): Selected remote version of com.google.android.gms.wallet_dynamite, version >= 242632000 V/DynamiteModule(10378): Dynamite loader version >= 2, using loadModule2NoCrashUtils E/ThemeUtils(10378): View class android.support.v7.widget.AppCompatTextView is an AppCompat widget that can only be used with a Theme.AppCompat theme (or descendant). E/ThemeUtils(10378): View class com.google.android.material.imageview.ShapeableImageView is an AppCompat widget that can only be used with a Theme.AppCompat theme (or descendant).

already set theme to Theme.AppCompat and use FlutterFragmentActivity

@mtiendat mtiendat added the needs triage Needs triage label Jul 22, 2024
@mtiendat mtiendat reopened this Jul 22, 2024
@mtiendat
Copy link
Author

here is video

Screen.Recording.2024-07-22.at.08.35.46.mov

@remonh87
Copy link
Member

@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
Copy link
Member

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

jonasbark added a commit that referenced this issue Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Needs triage
Projects
None yet
Development

No branches or pull requests

3 participants