nookipedia_flutter 0.2.5 copy "nookipedia_flutter: ^0.2.5" to clipboard
nookipedia_flutter: ^0.2.5 copied to clipboard

Flutter wrapper for Nookipedia API. The Nookipedia API provides endpoints for retrieving Animal Crossing data pulled from the Nookipedia wiki.

Dart wrapper for Nookipedia API. It provides simple methods for retrieving Animal Crossing data.

Features #

Contains wrapper methods for the following endpoints:

  1. Artwork
  2. Clothing
  3. Events
  4. Furniture
  5. Interiors
  6. Miscellaneous items available in the game
  7. Photos and Posters
  8. Recipes
  9. Tools
  10. Villagers
  11. Insects
  12. Fish
  13. Sea Creatures
  14. Fossils

Getting started #

Import the package:

import 'package:nookipedia_flutter/nookipedia_flutter.dart';

Initialize NookipediaClient before using it:

void main() {
  NookipediaClient.initialize(
    apiKey: NOOKIPEDIA_API_KEY,
    version: API_VERSION_HERE
  );
  runApp(const MyApp());
}

apiKey is mandatory. You will have to apply for one here.

version is optional. It controls which version of the API you are calling.

Usage #

Call the methods exposed by the API by using the client instance:

FutureBuilder(
    future: NookipediaClient.instance.clothing
        .fetchNames(category: ClothingCategory.dressUp),
    builder: ((context, AsyncSnapshot<List<String>> snapshot) {
        if (snapshot.connectionState == ConnectionState.waiting) {
            return const Center(child: CircularProgressIndicator());
        }
        if (snapshot.hasError) {
            return Text(snapshot.error?.toString() ?? "Something went wrong");
        }
        var data = snapshot.data!;
        return ListView.builder(
        itemCount: data.length,
        itemBuilder: ((context, index) {
            return ListTile(title: Text(data[index]));
        }),
        );
    }),
)
0
likes
150
points
35
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter wrapper for Nookipedia API. The Nookipedia API provides endpoints for retrieving Animal Crossing data pulled from the Nookipedia wiki.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

dio, equatable, flutter, json_annotation

More

Packages that depend on nookipedia_flutter