Build: Async Data Loader
This screen fetches a message from a simulated slow network call and displays it. It shows a loading spinner while waiting.
Target UI
------------------------- | Async Data Loader | |-----------------------| | | | [Loading spinner] | | | | | | | | | | | | | | | | | | | -------------------------
Show a CircularProgressIndicator while waiting for data
Fetch data asynchronously using Future.delayed to simulate network delay
Display the fetched message once loaded
Use async/await syntax inside initState or a similar lifecycle method
Handle state updates properly to refresh UI