Component - Loading and error states
This UI component shows how an app displays a loading spinner while waiting for data and an error message if loading fails. It helps users understand what is happening and keeps the app friendly and clear.
This UI component shows how an app displays a loading spinner while waiting for data and an error message if loading fails. It helps users understand what is happening and keeps the app friendly and clear.
Scaffold
├── AppBar
└── Center
└── ConditionalWidget
├── CircularProgressIndicator (if loading)
├── Text (if error)
└── Text (if data loaded)