Search packages, repositories and app categories

flutter_simple_calculator cover
Package detailsv2.7.1

flutter_simple_calculator

Flutter widget that provides simple calculator. You can easily integrate a calculator to your apps.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
3.1K
Likes
130
Pub points
160

Install package

flutter pub add flutter_simple_calculator

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter widget that offers a straightforward, customizable calculator for integration into apps. Designed for simplicity and ease of use, it supports basic arithmetic operations and can be seamlessly embedded in various UIs. The package is compatible across all major platforms, including mobile, web, and desktop, making it ideal for applications requiring quick calculation functionality without complex dependencies.

Use cases

  • Simple arithmetic in forms
  • Budgeting or expense tracking apps
  • Educational tools for math learning
  • Quick calculation features in productivity apps
  • In-app calculators for games or quizzes

Key features

  • Easy integration with minimal setup
  • Supports basic math operations
  • Cross-platform compatibility
  • Customizable appearance
  • Lightweight and fast performance

Suitable for

  • Developers needing a basic calculator
  • Educational app creators
  • Apps with simple math needs
  • Prototyping rapid calculation features
  • Projects prioritizing lightweight dependencies

Considerations

  • Limited to basic operations
  • No advanced functions like trigonometry
  • Not suitable for complex financial calculations
  • UI customization requires some coding
  • No built-in history or memory features

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

flutter_simple_calculator

Flutter widget that provides simple calculator. You can easily integrate a calculator to your apps.

pub package

Default style
With custom styles
SimpleCalculator(
  theme: const CalculatorThemeData(
    displayColor: Colors.black,
    displayStyle: const TextStyle(fontSize: 80, color: Colors.yellow),
    /*...*/
  ),
)
Localize
SimpleCalculator(
  numberFormat: NumberFormat.decimalPattern("fa_IR")
    ..maximumFractionDigits = 6,
)

Getting Started

To use this plugin, add flutter_simple_calculator as a dependency in your pubspec.yaml file.

dependencies:
 flutter_simple_calculator: 

Import the library in your file.

import 'package:flutter_simple_calculator/flutter_simple_calculator.dart';

See the example directory for a complete sample app using SimpleCalculator. Or use the SimpleCalculator like below.

SimpleCalculator(
  value: 123.45,
  hideExpression: true,
  onChanged: (key, value, expression) {
    /*...*/
  },
  theme: const CalculatorThemeData(
    displayColor: Colors.black,
    displayStyle: const TextStyle(fontSize: 80, color: Colors.yellow),
  ),
)

Categories

Dependencies

Dependency list 4 items

Source repository

Projects using this package

No data available yet.