A Flutter app that displays real-time electricity carbon intensity and power production breakdown for Portugal, using the Electricity Maps API.
- Shows current carbon intensity (gCO2eq/kWh) for Portugal
- Displays a breakdown of power production by source (e.g., solar, wind, hydro)
- Visualizes the power breakdown with a vertical bar chart
- All power source names are translated to Portuguese
- Modern, material-inspired UI with cards and elevation
- Fully scrollable screen for a smooth experience
![]() |
![]() |
| Individual values | Main Screen with chart |
- Clone the repository:
git clone https://github.com/lijealso/electricity.git cd electricity - Install dependencies:
flutter pub get
- Run the app:
flutter run
This app uses the Electricity Maps API. The API key is set in the code for demonstration purposes. For production use, get your own API key from Electricity Maps and update the _apiKey variable in lib/main.dart.

