flutter_simple_calculator
2.7.1, released 9 months ago by zuvola.com
A Flutter widget that provides a simple calculator UI.
WASM-ready
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.
- plaid_flutter
Flutter plugin that embeds Plaid Link native SDKs for iOS, Android and Web.
67Compare - material_table_view
Feature-rich data table widget for Flutter with virtualization and frozen columns.
65Compare
Works with
Packages commonly used together with flutter_simple_calculator: ones it builds on, ones built on it, and its own family.
- intlflutter_simple_calculator depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- auto_size_textflutter_simple_calculator depends on itAutomatically resizes text to fit perfectly within its bounds.
- math_expressionsflutter_simple_calculator depends on itParse and evaluate mathematical expressions in real, vector, and interval contexts.
- flutter_grid_buttonflutter_simple_calculator depends on itFlutter widget that arranges buttons in a grid layout.