Skip to content

A Flutter-based calculator app designed for seamless cross-platform functionality, supporting Android, iOS, web, and desktop environments

License

Notifications You must be signed in to change notification settings

chathumiamarasinghe/Calculator_App

Repository files navigation

Calculator App

A modern and feature-rich calculator app built using Flutter. This app provides a sleek and intuitive interface for performing various mathematical operations.

Features

  • Basic Operations: Addition, Subtraction, Multiplication, and Division.
  • Advanced Operations:
    • Calculate percentages.
    • Compute square roots.
  • Responsive Design: Adapts seamlessly to different screen sizes.
  • Calculation History: View your previous calculations.
  • Error Handling: Clear and user-friendly error messages for invalid operations (e.g., division by zero).

Technologies Used

  • Language: Dart
  • Framework: Flutter
  • UI Components: Material Design

Getting Started

Prerequisites

  1. Install Flutter SDK from the official site.
  2. Ensure you have an emulator or a physical device set up for development.

Installation

  1. Clone the repository:
    git clone https://github.com/chathumiamarasinghe/Calculator_App.git
  2. Navigate to the project directory:
   cd calculator-app
  1. Run the app on an emulator or physical device:
   flutter run
  1. How to Use
  • Launch the app.
  • Perform calculations by tapping the buttons for numbers and operations.
  • Use the "√" button for square root and "%" for percentage.
  • Tap the history icon (top-right) to view past calculations.
  • Use "C" to clear the current input and "⌫" to delete the last digit or operator.
  1. Code Overview
  • The core functionality of the app is in the CalculatorScreen class, which manages:

  • UI Rendering: Builds a responsive calculator interface.

  • State Management: Handles user input, operations, and results dynamically.

  • Error Handling: Displays error dialogs for invalid inputs.

Videos & Screenshots

Feature Demo Video - ios video

Watch the video

Feature Demo Video - Android video

Watch the short video

Home Screen

Home Screen

History Screen

Calculation Screen

Error Screen

History Screen Error Message

calculation Screen

Dark Mode

About

A Flutter-based calculator app designed for seamless cross-platform functionality, supporting Android, iOS, web, and desktop environments

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published