swapi_client 0.1.0 copy "swapi_client: ^0.1.0" to clipboard
swapi_client: ^0.1.0 copied to clipboard

A library that makes it easy to fetch data from SWAPI - The Star Wars API.

example/swapi_client_example.dart

import 'package:swapi_client/swapi_client.dart';

void main() async {
  final swapi = SwapiClient();

  // Fetches and prints the list of Star Wars Films
  print(await swapi.films());

  // Fetches and prints the first page of Star Wars characters. Pagination
  // information included as part of the response, so it's easy to create
  // paginated experiences!
  print(await swapi.people());
}
0
likes
40
pub points
0%
popularity

Publisher

unverified uploader

A library that makes it easy to fetch data from SWAPI - The Star Wars API.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

http

More

Packages that depend on swapi_client