A modern, fully functional calculator app built with Flutter. This calculator provides all basic arithmetic operations with a clean, intuitive user interface.
- ✨ Basic Operations: Addition, Subtraction, Multiplication, Division
- 🔢 Decimal Support: Handle floating point numbers
- 🔙 Backspace: Delete individual digits
- 🧹 Clear Function: Reset calculator state
⚠️ Error Handling: Proper handling of division by zero- 🎨 Modern UI: Dark theme with orange accent colors
- 📱 Responsive Design: Works on all screen sizes
The calculator features a clean, modern interface with:
- Large, easy-to-read display
- Intuitive button layout
- Visual feedback for operations
- Dark theme for better user experience
Make sure you have Flutter installed on your system. If not, follow the Flutter installation guide.
-
Clone this repository:
git clone https://github.com/prabasajee/flutter_application_calculator.git cd flutter_application_calculator -
Get dependencies:
flutter pub get
-
Run the app:
flutter run
The calculator is designed to be intuitive and easy to use:
- Input Numbers: Tap number buttons (0-9) to enter values
- Operations: Tap +, -, ×, ÷ for arithmetic operations
- Decimal: Tap . to add decimal points
- Calculate: Tap = to get the result
- Clear: Tap C to reset everything
- Backspace: Tap ⌫ to delete the last digit
- Simple addition:
5 + 3 = 8 - Decimal operations:
2.5 × 4 = 10 - Chained operations:
10 + 5 - 3 = 12
- Language: Dart
- Framework: Flutter
- State Management: StatefulWidget with setState
- UI Pattern: Material Design
CalculatorApp: Main application widgetCalculatorScreen: Main calculator interface_CalculatorScreenState: Manages calculator logic and state
lib/
├── main.dart # Main application entry point and calculator logic
This app runs on:
- 📱 Android
- 🍎 iOS
- 💻 Windows
- 🐧 Linux
- 🌐 Web
- 🖥️ macOS
- 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
Potential features to add:
- Scientific calculator functions
- History of calculations
- Themes and customization
- Memory functions (M+, M-, MR, MC)
- Keyboard input support
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with Flutter
- Inspired by modern calculator designs
- Material Design guidelines
Made with ❤️ using Flutter