I was developing a feature in my app, in particular a map with some icon markers using this package. During my programming session I used an Icon widget and I set the icon size at 100. Good, everything run smoothly, but when I launched the app on different screens I found the following situation here…
Category: Flutter
How to wait for multiple futures with FutureBuilder in Flutter
Sometimes you may need to call different API in order to build a widget and you need all of these information at the same time. In Flutter it’s pretty easy to do this using the FutureBuilder widget and the wait() method. Let’s see here an example: Here above we have two futures calling two different…
[SOLVED] XMLHttpRequest error in Flutter web is a CORS error
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…
[SOLVED] flutter_osm_plugin not working (Expecting an argument)
If you are here it means that you cannot use the OSM plugin for Flutter. And if you are reading this post I hope you’re going to fix it. This is the error: If you are facing the same error, you can try to fix in this way: invalidate cache and restart upgrade Flutter upgrade…
How to open a page in Facebook app in Android with Flutter (deep link)
Maybe, if you are here, it means that you already tried to launch the Facebook URL of a page failing because the browser is launched instead of the native app. Well, to open the Facebook app on a specific page it’s quite simple if you know the correct way. First of all you can use…
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…