api_state_view 0.0.2 copy "api_state_view: ^0.0.2" to clipboard
api_state_view: ^0.0.2 copied to clipboard

A simple and reusable Flutter widget for handling loading, error, empty and success API states.

api_state_view #

pub package likes popularity

A clean and reusable Flutter widget to handle common API UI states in one place.

✅ Loading
✅ Error
✅ Empty
✅ Success
✅ Retry Support
✅ Custom Widgets


Why api_state_view? #

Most Flutter apps repeatedly write the same UI logic:

  • Show loader while fetching data
  • Show error message on failure
  • Show empty state when list is empty
  • Show actual content on success

api_state_view simplifies that into one widget.


Features #

  • Simple and clean API
  • Works with any state management
  • Retry callback support
  • Replace default states with custom widgets
  • Lightweight and easy to use
  • Production ready

Installation #

Add dependency:

dependencies:
  api_state_view: ^0.0.1
1
likes
150
points
60
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A simple and reusable Flutter widget for handling loading, error, empty and success API states.

Repository (GitHub)
View/report issues

Topics

#flutter #state-management #loading #api #widget

License

MIT (license)

Dependencies

flutter

More

Packages that depend on api_state_view