Search⌘ K
AI Features

Challenge: Crypto API

Explore how to implement HTTP GET requests in Flutter to retrieve cryptocurrency data from a mock API. Learn to handle loading states, errors, and display dynamic data in a ListView using FutureBuilder, reinforcing CRUD and networking fundamentals.

In this challenge, you will fetch a list of crypto data from our mock API.

Goal

The goal of this lesson is to put CRUD operation-related concepts into practice.

Specs

When you run your app, a list of coins should be displayed as shown below:

Starter code

Before you begin the challenge, look at the starter code below and run it. Once done, you can dive into the challenges.

import 'package:flutter/material.dart';
import 'presentation/my_app.dart';
void main() async{
  runApp(const MyApp());
}


Crypto API challenge starter app

Challenges

...