A simple Flutter app to calculate your electricity bill based on TNB's domestic tariff rates.
Report Bug
·
Request Feature
Table of Contents
Watt's My Bill is a Flutter mobile application developed as part of a Mobile Technology Assignment. It aims to help users easily estimate their electricity bills based on their consumption and the current tariff rates provided by Tenaga Nasional Berhad (TNB), Malaysia's primary electricity utility company.
- Calculate electricity bill: Enter your electricity consumption in kilowatt-hours (kWh) and any applicable rebate percentage.
- View TNB tariff rates: Access detailed information about TNB's domestic tariff rates (as of May 2024) to understand how your bill is calculated.
- Customizable: Adjust the app's appearance with different themes.
- Error handling: Provides clear error messages for invalid inputs.
To run this app on your local machine, follow these steps:
- Flutter SDK: Make sure you have the Flutter SDK installed. You can download it from the official Flutter website: https://flutter.dev/
-
Clone the repo:
git clone https://github.com/Kyziq/watts-my-bill-calculator
-
Install dependencies:
flutter pub get
-
Run the code:
flutter run
Estimate your electricity bill with ease:
- Enter Units: Input the total electricity units consumed (in kWh).
- Optional Rebate: If you have a rebate, enter the percentage in the "Rebate Percentage" field. Leave it blank if you don't have a rebate.
- Calculate Bill: Click the "Submit" button to get your estimated bill.
- View Tariff Rates (Optional): For a detailed breakdown of TNB's tariff rates (as of May 2024), click the info (🛈) button.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.