Flutter
Introduction
This template demonstrates a simple Flutter application that fetches and displays quotes from an API. It uses the http package for making HTTP requests and the flutter_dotenv package for managing environment variables.
Dependencies
Add the following dependencies to your pubspec.yaml file:
Environment Variables
Create a .env file in the root of your project and add your API key:
Screenshots
Running the App
- Ensure you have Flutter installed and set up.
- Add your API key to the
.envfile. - Run
flutter pub getto install dependencies. - Use
flutter runto start the application.
This will launch the app, and you should see a quote displayed on the screen. Press the refresh button to fetch a new quote.
