If i'm right, google_fonts plugin loads font through http during debug. Later when our app is ready we have to download the font from the fonts.google.com . and store it in pubsec.yaml.
I am developing a flutter application where all the available fonts should be shown to the users. But if i can't fetch it in the runtime, i will have to download every file, which counts over a thousand. It might become difficult as my app size increases and i will have to manually download them all.
So my question is, can i fetch it in the runtime , or is there some other way to achieve it? Hope someone can answer me. Thank You
edit: It ran without problems. The problem was not with google_fonts, my code was not reflecting changes, so i got wrong release apk
When you just get that once. this should be work.means your project must not running .you must stop running then pub get.
Related
I just had the unfortunate of losing my app source code. Is it possible to get it from google appbundle or apple build?
This question should help you turn your android app bundle into apk.
If you have the apk file, then it might be possible to turn it back into code. This answer might help you out.
I'm not sure if this is gonna work or not but it's worth trying so keep me updated
Let this be a lesson for you to use Github next time!
I am using Firebase in my project to get the data. Problem is when I run debug version app works fine and show the fetched data but when I create a release version of it and then open my application It's shows blank screen. It is strange and I am not getting why this happening. To understand the issue I have given the two videos of it and also the project repository link, and the problem I am facing in the Book_Screen.dart.
Project Link: https://github.com/jaydip-pawar/Hindi-Audio-Bible
In Debug Version:
In Release Version:
It is hard to catch problem in release mode. But you can try to open "Uncaught Exception" from the debug panel and if some error occurs, try to fix them.
If you can't solve the problem, you can comment widgets one by one. In this way, you can look for the specific lines of code that causes the error.
If you are using playstore inbuilt keystore, add those sha1 from playstore to firebase app setting.
I am new to flutter build some applications only. Currently, I was working on a small project with API every this was fine but when I build the release of the application it starts showing nothing (no API are able to load data)and I am unable to find what is a problem with my app. Tried almost every possible this I can find out.
already given all the permission that is required for the application.
any help will be appreciated.
thank you in advance.
Did you mentioned INTERNET permission in the mamifest file?
I am very beginner in flutter development so have very little knowledge about its working but need to clear my doubt.
I had created an app using flutter create command and a sample flutter project directory is created. When I opened the app using visual studio code and run the app over the physical device an app is created in my device and showing the basic increment counter feature on the screen which is due to the code written in main.dart file.
I remove all the content of main.dart file and wrote my code there and reload it. The app is working fine.
The problem is everytime when I connect my device with my computer I am getting the UI of the sample project created initially and only after reloading again I am getting my new UI.
This problem only exists when first time I am connecting my mobile for debugging and after reloading it is resolved.
Why I am getting the old UI (the one with counter generate while created app for the first time) even though there is no code regarding the same.
Thanks
This is happening because you are using hot reload only. Stop the app from the IDE and rebuild. Then after restarting the emulator will be no problem.
This is a kind of bug. I also faced the same problem and finally i fixed it using flutter clean from the terminal. Hope you also already fixed it.
i use xcode 4.3.2 with phonegap 1.6. my app runs well the first time, but if i close the app in the ios simulator and i launch it for the second time, it crashes. Why?
This is probably only in the simulator. I have had it a couple of times in the simulator but it never happened to me on-device.
I am currently having this issue, except in Android. This is with the release flag. More info can be found here: https://forum.ionicframework.com/t/v2-android-second-app-start-doesnt-work-for-release-version/125583
but here is a copy pasta in case the link goes down:
Synopsis:
My app has a canvas on it on the page html. On second start of initial install, app start doesn’t show canvas. I know because the body tag has a background and the canvas has a different background. The page does not have a module defined for it. This is only when built with --release
Environment:
Ionic: 3.20
Cordova: 7.1.0
Angular: 5.2.9
Android: 6.1.2 (I think build target 25)
jdk: 1.8
Additional Info:
I am sort of doing bleeding edge stuff, but I am now out of the realm of being able to solve this on my own. I am using pixi.js, specifically from an additional interface library called angular2pixi. A2p doesn’t support --aot building.
Before I go on, let me reiterate everything works, even on multiple app restarts for everything other than --release.
The top level architecture is fairly simple:
a2p provides a service that has an instance of pixi. My app uses that service and has a page with a canvas awaiting Pixi’s rendering. When the app initializes, it starts up the pixi service, passing it the canvas reference and voila: html5ified angular.
I have offloaded the actual initialization of the rendering to a user clicked button to make sure it’s not something to do with life cycles but that didn’t work either. Even more interestingly, the button I made didn’t show when the app didn’t load. So likely, this means the ion-content itself isn’t showing!
Most interestingly, if I go into app info and delete storage (not cache) then it works on next app start! I am using localstorage but I attempted removing all mentions of it and no luck. ALSO On second install, or rather what would more technically be an update, the app works on every start after that.
This happens on android and I can’t seem to replicate it in iOS other than the first time I tried. Because it is a release build, it’s difficult to debug. I attempted using Ionic Pro Monitoring to no avail.
So far, my leanings are:
some type of caching causing a bug with the canvas itself
an error that is causing cordova or ionic to terminate
problem with my build process
a2p’s architecture (how could I go about debugging this given I have little knowledge of the underlying mechanics of cordova/ng2 -> native compilation?)
a cordova plugin (perhaps causing one of the above)
So as you can probably tell from my formatting, I’m somewhere between nerd heaven and hell. Such a fascinating problem… but plis halp