Skip to content
pubscout

flutter_simple_calculator

2.7.1, released 9 months ago by zuvola.com

A Flutter widget that provides a simple calculator UI.

WASM-ready
$ flutter pub add flutter_simple_calculator
Source repository

What it does

It displays a calculator interface that can perform basic arithmetic operations. The widget is customizable in appearance and supports localization of numbers. It notifies changes via callbacks.

AI-written summary of version 2.7.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need an embedded basic calculator in a Flutter app
  • You want a customizable calculator UI with theming
  • You require localization support for number formatting

Skip it when

  • You need scientific or graphing calculator features
  • You require complex expression parsing beyond basic math
  • You need backend integration or data persistence for calculations

Strengths

  • Easy to drop into any Flutter project
  • Customizable theme and style
  • Supports number localization
  • Works on all Flutter platforms

Weaknesses

  • Limited to basic arithmetic operations
  • Not a full-featured scientific calculator
  • Potential UI quirks with right‑click handling

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
4
SimpleCalculator(
  value: 123.45,
  hideExpression: true,
  onChanged: (key, value, expression) {/*...*/},
  theme: const CalculatorThemeData(
    displayColor: Colors.black,
    displayStyle: TextStyle(fontSize: 80, color: Colors.yellow),
  ),
);

Alternatives

Packages that do the same job and could replace flutter_simple_calculator.

Works with

Packages commonly used together with flutter_simple_calculator: ones it builds on, ones built on it, and its own family.