flutter_empty_state library
Lightweight, theme-aware empty / error / no-internet / search-empty / loading state widgets for Flutter — plus a StateView to switch between them from a single ViewState value, and an EmptyStateTheme to style them all at once.
Import this one file to get everything:
import 'package:flutter_empty_state/flutter_empty_state.dart';
Classes
- EmptyState
- A friendly placeholder for a screen or list that simply has no content yet.
- EmptyStateTheme
- App-wide defaults for the flutter_empty_state widgets.
- ErrorState
- Shown when something failed and you want to let the user try again.
- LoadingState
- A centered spinner with an optional message underneath.
- NoInternetState
- Shown when the app can't reach the network.
- SearchEmptyState
- Shown when a search came back with nothing.
- Shimmer
- An animated shimmer that sweeps a soft highlight across its child.
- Skeleton
- A single shimmering placeholder — a line, a box or (via Skeleton.circle) an avatar.
- SkeletonList
- A ready-made shimmering placeholder list — drop it straight into a loading state instead of a spinner:
- StateView
- Picks what to render based on the current ViewState, and cross-fades between states as it changes.
Enums
- ViewState
- The states a screen usually moves through while it loads something.