Skip to content

Edoardo Vignati 👨🏻‍💻

› Always looking for awesome things

Menu
  • Studies
  • Publications
  • Skills
  • Portfolio
  • Projects
  • Career
  • Blog
  • 🇮🇹 Servizi
Menu

Category: Flutter

Constant size of a widget across multiple devices and screen resolutions in Flutter

Posted on 03/03/202330/07/2023 by Edoardo

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…

Continue reading

How to wait for multiple futures with FutureBuilder in Flutter

Posted on 22/06/202222/06/2022 by Edoardo

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…

Continue reading

[SOLVED] XMLHttpRequest error in Flutter web is a CORS error

Posted on 08/10/202106/01/2023 by Edoardo

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…

Continue reading

[SOLVED] flutter_osm_plugin not working (Expecting an argument)

Posted on 11/09/2021 by Edoardo

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…

Continue reading

How to open a page in Facebook app in Android with Flutter (deep link)

Posted on 29/08/202126/06/2022 by Edoardo

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…

Continue reading

Add Font Awesome icons dynamically in Flutter apps

Posted on 19/04/202119/04/2021 by Edoardo

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…

Continue reading
© 2025 Edoardo Vignati 👨🏻‍💻 | Powered by Minimalist Blog WordPress Theme