0 purchases
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.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.