This is the error from http package in Flutter: This error is a Javascript error and it can be inspected from AndroidStudio terminal or from the browser console. If you run into this problem it means that the requests to the API server are failing due to a CORS error. When executing these types of…
Category: Mobile
Add Font Awesome icons dynamically in Flutter apps
The font_awesome_flutter plugin is very easy to use and contains tons of beautiful icons. But, what if the icons are not known at compile time? I wrote a one-class Dart file that uses the Font Awesome plugin and allows to pick an icon at runtime. Using the naming convention of fontawesome.com you can include the…
Android Studio cannot preview?
You are starting a new Android project, you open your Android Studio, Gradle is building…exciting! You open your main activity .xml file, put a new button and….nothing happens. Android Studio won’t preview the layout of your application…damn… Solution: for most of the tamplates that you can choose from the wizard, the fix is very simple….