tenhobi / flashcards

FIT CTU · BI-SP1 · BI-SP2 · B172 · B181 – software team project
MIT License
35 stars 8 forks source link

Google logo on sign in doesn't work #99

Closed tenhobi closed 6 years ago

tenhobi commented 6 years ago

In released app, the google logo on sigh in button doesn't appear.

tenhobi commented 6 years ago

Probably some issue because of packages/... path ?

tenhobi commented 6 years ago
I/flutter ( 3404): ══╡ EXCEPTION CAUGHT BY SERVICES ╞══════════════════════════════════════════════════════════════════
I/flutter ( 3404): The following assertion was thrown resolving an image codec:
I/flutter ( 3404): Unable to load asset: packages/flashcards_common/assets/icons//google_logo.png
I/flutter ( 3404):
I/flutter ( 3404): When the exception was thrown, this was the stack:
I/flutter ( 3404): #0      PlatformAssetBundle.load (package:flutter/src/services/asset_bundle.dart:221:7)
I/flutter ( 3404): <asynchronous suspension>
I/flutter ( 3404): #1      AssetBundleImageProvider._loadAsync (package:flutter/src/painting/image_provider.dart:383:44)I/flutter ( 3404): <asynchronous suspension>
I/flutter ( 3404): #2      AssetBundleImageProvider.load (package:flutter/src/painting/image_provider.dart:368:14)
I/flutter ( 3404): #3      ImageProvider.resolve.<anonymous closure>.<anonymous closure> (package:flutter/src/painting/image_provider.dart:265:86)
I/flutter ( 3404): #4      ImageCache.putIfAbsent (package:flutter/src/painting/image_cache.dart:82:22)
I/flutter ( 3404): #5      ImageProvider.resolve.<anonymous closure> (package:flutter/src/painting/image_provider.dart:265:63)
I/flutter ( 3404): (elided 8 frames from package dart:async)
I/flutter ( 3404):
I/flutter ( 3404): Image provider: AssetImage(bundle: null, name:
I/flutter ( 3404): "packages/flashcards_common/assets/icons//google_logo.png")
I/flutter ( 3404): Image key: AssetBundleImageKey(bundle: PlatformAssetBundle#b22f1(), name:
I/flutter ( 3404): "packages/flashcards_common/assets/icons//google_logo.png", scale: 1.0)
I/flutter ( 3404): ════════════════════════════════════════════════════════════════════════════════════════════════════
tenhobi commented 6 years ago

I have probably fixed this. I am testing it on the production version.

tenhobi commented 6 years ago

@Kenny11CZ I do not know what is the real difference, maybe the usage of Image.asset() or the fact, that previous version had // in the file name. But it works now.