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

Libraries

api_state_view