versatile_calculator

Creator: coderz1093

Last updated:

0 purchases

versatile_calculator Image
versatile_calculator Images

Languages

Categories

Add to Cart

Description:

versatile calculator

Author #
Souvik Versatile
Link to Profile
Versatile Calculator #
A simple calculator with some unique attributes that stores history of the previous calculations in a scrollview.
It can able to handle exception cases
Installation #

Add the latest version of package to your pubspec.yaml (and rundart pub get):

dependencies:
versatile_calculator: ^0.0.3
copied to clipboard

Import the package and use it in your Flutter App.

import 'package:versatile_calculator/versatile_calculator.dart';
copied to clipboard
Example #



class DemoCalculatorScreen extends StatelessWidget {
const DemoCalculatorScreen({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.cyan[100],
body: Center(
child: ElevatedButton(
style: ElevatedButton.styleFrom(
primary: Colors.red[800]!,
side: BorderSide(
width: 1.0,
color: Colors.red[800]!,
),
onPrimary: Colors.white,
elevation: 5,
),
onPressed: (){
showDialog(
barrierColor: Colors.white.withOpacity(0.2),
barrierDismissible: true,
context: context,
builder: (ctx) {
return VersatileCalculator();
});
},

child: Text('Check Calculator'),
),
),
);
}
}
copied to clipboard






Next Goals #


Make more ui and buttons more robust.
Now all the buttons and functionalities are constant.In the future need to make it more customisable.


Handle all exceptions
Handling of exceptions complete


Add the calculator only as a side container or as a part of another widget.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.