This is a simple example of how to make a network call in Flutter. It uses the dio package and the getx for state management.
dependencies:
flutter:
sdk: flutter
get: ^4.6.5
dio: ^4.0.6
import 'package:dio/dio.dart';
import 'package:get/get.dart';