Pobierz dane za pomocą getx
import 'package:get/get.dart';
class Provider extends GetConnect{
Future<dynamic> getUser() async{
final response = await get('http://localhost:8000/users');
if(response.status.hasError){
return Future.error(response.statusTex!);
}else{
return response.body;
}
}
George Curay