Skip to content
This repository has been archived by the owner on Oct 10, 2020. It is now read-only.

Icon doesn't work on google button #10

Closed
UglyBob79 opened this issue May 30, 2019 · 3 comments
Closed

Icon doesn't work on google button #10

UglyBob79 opened this issue May 30, 2019 · 3 comments
Labels
invalid This doesn't seem right

Comments

@UglyBob79
Copy link

I just tried version 0.5.0 in my project with a google button (dark) and I get no icon and this exception:

I/flutter (24157): ══╡ EXCEPTION CAUGHT BY IMAGE RESOURCE SERVICE ╞════════════════════════════════════════════════════
I/flutter (24157): The following assertion was thrown resolving an image codec:
I/flutter (24157): Unable to load asset: packages/flutter_auth_buttons/graphics/google-logo.png
I/flutter (24157):
I/flutter (24157): When the exception was thrown, this was the stack:
I/flutter (24157): #0 PlatformAssetBundle.load (package:flutter/src/services/asset_bundle.dart:221:7)
I/flutter (24157):
I/flutter (24157): #1 AssetBundleImageProvider._loadAsync (package:flutter/src/painting/image_provider.dart:464:44)
I/flutter (24157):
I/flutter (24157): #2 AssetBundleImageProvider.load (package:flutter/src/painting/image_provider.dart:449:14)
I/flutter (24157): #3 ImageProvider.resolve... (package:flutter/src/painting/image_provider.dart:315:48)
I/flutter (24157): #4 ImageCache.putIfAbsent (package:flutter/src/painting/image_cache.dart:160:22)
I/flutter (24157): #5 ImageProvider.resolve.. (package:flutter/src/painting/image_provider.dart:315:25)
I/flutter (24157): (elided 13 frames from package dart:async)
I/flutter (24157):
I/flutter (24157): Image provider: AssetImage(bundle: null, name:
I/flutter (24157): "packages/flutter_auth_buttons/graphics/google-logo.png")
I/flutter (24157): Image key: AssetBundleImageKey(bundle: PlatformAssetBundle#833bd(), name:
I/flutter (24157): "packages/flutter_auth_buttons/graphics/google-logo.png", scale: 1.0)
I/flutter (24157): ════════════════════════════════════════════════════════════════════════════════════════════════════

@UglyBob79
Copy link
Author

Tested 0.4.0 now and there it works fine...

@dmjones
Copy link
Owner

dmjones commented May 31, 2019

That's an odd one. I can't reproduce at my end.

Also, if you look at the differences between 0.4.0 and 0.5.0, there is nothing related to the Google button.

Have you tried a flutter clean to trigger a fresh build?

@UglyBob79
Copy link
Author

Well, you are right, I changed back to 0.5.0 now, the issue is gone. So I will close my issue.

@dmjones dmjones added the invalid This doesn't seem right label May 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants