flutter_fetcher_state 1.1.0 copy "flutter_fetcher_state: ^1.1.0" to clipboard
flutter_fetcher_state: ^1.1.0 copied to clipboard

A new Flutter package project.

Flutter fetcher state #

Flutter library for fetching data

Query #

Query Builder #

Query.builder<List<String>>(
  fetcher: (context) => ExampleRepo.of(context).allItems(), // Returns future
  createStream: (context) => ExampleRepo.of(context).streamAllItems(), // Returns stream
  builder: (context, controller) {
    // handle your view with the controller
  }
)

Mutation #

Mutation Builder #

Mutation.builder<String>(
  builder: (context, controller) {
    return TextButton(
      child: Text("Click me"),
      onPressed: () => controller.mutate((context) => ExampleRepo.of(context).addItem("Hello world"))
    )
  }
)
0
likes
130
points
33
downloads

Publisher

unverified uploader

Weekly Downloads

A new Flutter package project.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, provider

More

Packages that depend on flutter_fetcher_state