Last updated:
0 purchases
flutter awesome calculator
Flutter package for adding calculator to your app using Flutter Awesome Calculator Widget.
Features #
Getting started #
To use this plugin, add flutter_awesome_calculator as a dependency in your pubspec.yaml file.
Import library in your file
import 'package:flutter_awesome_calculator/flutter_awesome_calculator.dart';
copied to clipboard
Usage #
FlutterAwesomeCalculator(
context: context,
digitsButtonColor: Colors.white,
backgroundColor: Colors.white,
expressionAnswerColor: Colors.black,
onChanged: (answer,expression){
},
);
copied to clipboard
You can show or hide answer field from calculator using bool value showAnswerField.
FlutterAwesomeCalculator(
context: context,
showAnswerField:true
);
copied to clipboard
The callback method onChanged has two parameters, one is expression and other one is answer, which you can use and show in your screen.
FlutterAwesomeCalculator(
context: context,
onChanged: (answer,expression){
},
);
copied to clipboard
Additional information #
Contributions to this repository are welcome.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.