A simple Flutter application that allows users to convert temperatures between Celsius and Fahrenheit. It includes a history feature to track past conversions.
Check out the demo video of the temperature conversion app on Loom:
- Temperature Conversion: Convert temperatures between Celsius and Fahrenheit.
- History: Save and view the history of temperature conversions.
- Responsive Layout: Adaptable layout for different screen sizes and orientations.
- Dark Theme: Consistent dark theme with teal accents.
- Flutter SDK
- Dart SDK
git clone https://github.com/AIMEMAGNI/ThermoConvert.git
cd temperature_conversion_appflutter pub getflutter run- Select Unit: Use the dropdown menu to choose between Celsius and Fahrenheit.
- Enter Temperature: Input the temperature value in the designated field.
- Convert: Press the "Convert" button to see the result.
- View History: Access the history of conversions by navigating to the history screen.
main.dart: Contains the main entry point of the application, including theTemperatureConversionandTemperatureConversionHistorywidgets.
TemperatureConversion: Handles the temperature conversion logic, user input, and displaying results._convertTemperature(): Performs the conversion based on selected unit and updates the result._loadHistory()and_saveHistory(): Load and save conversion history usingSharedPreferences.
TemperatureConversionHistory: Displays the list of past temperature conversions.