realtime_calculator

Last updated:

0 purchases

realtime_calculator Image
realtime_calculator Images
Add to Cart

Description:

realtime calculator

Features #
A realtime updating calculator
Usage #
Example
To use this package:

add the dependency to your pubspec.yaml file.

dependencies:
flutter:
sdk: flutter
realtime_calculator:
copied to clipboard
How to Use #
class MyHomePage extends StatefulWidget {
@override
State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
String? answer;

@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text("Calculator"),
),
body: Container(
height: 200,
child:
Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
TextButton(
onPressed: () async {
final answer = await showDialog(
context: context,
builder: (context) => const CalculatorDialog());
},
child: const Text("Calculator")),
const SizedBox(height: 20),
answer==null? const Text("Couldn't get Answer"):
Text("Answer: ${answer!}"),
]),
));
}
}

copied to clipboard

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.