I created a Flutter app by cloning the YouTube homepage and video mini-player UI and used the YouTube Data API v3 to fetch video data.
- Get your Youtube Data API v3 Key here
- Add a
.env
file at the root of the project and set an environment variableAPI_KEY
which holds your Youtube Data API key - Run the following commands
flutter pub get
flutter pub run build_runner clean
flutter pub run build_runner build
#(Note: enter '1' in the prompt to delete previously generated codes).
flutter run