flutter_dynamic_calculator

A new flutter package to build dynamic calculator easily with full customization ability. It'll be helpful for making a custom keyboard or a bottom sheet modal calculator.

pub package

Default style

With custom styles

DynamicCalculator(
  theme: const CalculatorTheme(
    displayColor: Colors.black,
    displayStyle: const TextStyle(fontSize: 80, color: Colors.yellow),
    /*...*/
  ),
)

Getting Started

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

dependencies:
 flutter_dynamic_calculator: 

Import the library in your file.

import 'package:flutter_dynamic_calculator/flutter_dynamic_calculator.dart';

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

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

Libraries

flutter_dynamic_calculator
Flutter widget that provides dynamic calculator.