async_switcher 1.0.0 copy "async_switcher: ^1.0.0" to clipboard
async_switcher: ^1.0.0 copied to clipboard

A smart Flutter widget that automatically switches UI based on async state (loading → empty → error → data). Framework-independent, supports Future & Stream.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add async_switcher

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  async_switcher: ^1.0.0

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:async_switcher/async_switcher.dart';
1
likes
150
points
73
downloads

Publisher

unverified uploader

Weekly Downloads

A smart Flutter widget that automatically switches UI based on async state (loading → empty → error → data). Framework-independent, supports Future & Stream.

Homepage
Repository (GitLab)
View/report issues

Topics

#flutter #widget #async #state-management #ui

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on async_switcher