This Flutter app retrieves and displays details of a random country using the RESTCountries API.
Built in the context of the article I built the same app with Flutter, React Native, and Ionic
https://fmmagalhaes.github.io/random_country_flutter
flutter run
![](https://private-user-images.githubusercontent.com/8866496/326590663-ba22e50f-9273-40c7-8eff-b088269d90b1.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NTU4MjIsIm5iZiI6MTczOTY1NTUyMiwicGF0aCI6Ii84ODY2NDk2LzMyNjU5MDY2My1iYTIyZTUwZi05MjczLTQwYzctOGVmZi1iMDg4MjY5ZDkwYjEuanBnP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTVUMjEzODQyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MGVlOGQwYWM1YjBkNjA5OTZjYjk3Y2JiNmFhOWUyOTZkZjgzM2E1MTRiNjExNjBhMjNjMGMxNTVmOTgwMGJmZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.CU6HIe_3wfvkV56hhQX7RnVGYEWxPmb7eeWnmLJEekg)
flutter config --enable-web
flutter create .
flutter build web --base-href=/random_country_flutter/
- Create a branch called
gh-pages
with the content of thebuild/web
folder.