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.

simple_api_client #

A minimal, isolated Dart/Flutter package for making JSON API calls that works on mobile, desktop, CLI, and web.

Features #

  • Pure Dart logic – no Flutter BuildContext or platform channels.
  • Uses the battle‑tested http package.
  • Web‑friendly – no dart:io.

Usage #

import 'package:simple_api_client/simple_api_client.dart';

void main() async {
  final api = ApiService(baseUrl: 'https://jsonplaceholder.typicode.com');
  final todo = await api.get('/todos/1');
  print(todo);
}

Example #

See the example/ directory for a full runnable snippet.

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