Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aadityapanda/calculator
A Flutter-based calculator application providing basic arithmetic operations, designed with a clean, dark-themed UI.
https://github.com/aadityapanda/calculator
android-app android-studio calculator-app dart flutter-apps flutter-calculator
Last synced: 24 days ago
JSON representation
A Flutter-based calculator application providing basic arithmetic operations, designed with a clean, dark-themed UI.
- Host: GitHub
- URL: https://github.com/aadityapanda/calculator
- Owner: AadityaPanda
- Created: 2023-09-02T04:43:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-28T07:05:07.000Z (4 months ago)
- Last Synced: 2024-11-17T14:54:26.059Z (3 months ago)
- Topics: android-app, android-studio, calculator-app, dart, flutter-apps, flutter-calculator
- Language: C++
- Homepage:
- Size: 266 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Calculator App
A Flutter-based calculator application providing basic arithmetic operations, designed with a clean, dark-themed UI.
## Features
- **Basic Arithmetic Operations**: Supports addition, subtraction, multiplication, and division.
- **Percentage Conversion**: Calculates percentage of the displayed number.
- **Clear and Delete Functions**: "AC" button to reset all fields, and "DEL" button to remove the last entered character.
- **Responsive Layout**: Buttons adjust dynamically for a consistent user experience across devices.
- **Dark Theme**: Minimalistic dark theme for a smooth, visually appealing interface.## Screenshots
![Screenshot 2023-08-28 225201](https://github.com/AadityaPanda/calculator/assets/95534176/2fc076a1-bc9c-4fe0-a4eb-435c3a8b6cbb)
![Screenshot 2023-08-28 225305](https://github.com/AadityaPanda/calculator/assets/95534176/91a51260-485c-4c8a-82cd-2e4dde67a7de)## Getting Started
Follow these instructions to get a local copy of the project up and running.
### Prerequisites
- [Flutter SDK](https://flutter.dev/docs/get-started/install)
- Any IDE supporting Flutter (e.g., VS Code, Android Studio)### Installation
1. **Clone the repository:**
```bash
git clone https://github.com/AadityaPanda/calculator.git
cd calculator-app
```2. **Install dependencies:**
```bash
flutter pub get
```3. **Run the app:**
```bash
flutter run
```## Project Structure
- `main.dart`: Initializes the app and sets up the dark theme.
- `calculator_screen.dart`: Contains the main layout of the calculator screen, button actions, and calculator logic.
- `button_values.dart`: Defines the buttons and their labels used in the calculator.## Code Highlights
### main.dart
```dart
import 'package:flutter/material.dart';
import 'calculator_screen.dart';void main() {
runApp(const MyApp());
}class MyApp extends StatelessWidget {
const MyApp({super.key});@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Calculator',
debugShowCheckedModeBanner: false,
theme: ThemeData.dark(),
home: const CalculatorScreen(),
);
}
}
```### calculator_screen.dart
Handles button presses, arithmetic logic, and displays results.
### button_values.dart
Defines constants for each button label, which are used throughout the app for consistency and ease of maintenance.