simple_api_client 0.0.1 copy "simple_api_client: ^0.0.1" to clipboard
simple_api_client: ^0.0.1 copied to clipboard

A simple Flutter package that makes API calls in an isolated and web‑compatible way.

example/main.dart

// Example usage of simple_api_client
import 'package:simple_api_client/simple_api_client.dart';

void main() async {
  final api = ApiService(baseUrl: 'https://jsonplaceholder.typicode.com');

  try {
    final data = await api.get('/todos/1');
    print('Fetched data: $data');
  } catch (e) {
    print('Error: $e');
  }
}
0
likes
140
points
11
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A simple Flutter package that makes API calls in an isolated and web‑compatible way.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http

More

Packages that depend on simple_api_client