Closed innerk closed 3 years ago
How about using 'CalcController.clear()' as below?
final _controller = CalcController();
@override
Widget build(BuildContext context) {
return SimpleCalculator(
controller: _controller,
onTappedDisplay: (value, details) {
_controller.clear();
},
);
}
Woaw awesome thanks!!!
Hi i want to reset the current value from outside the calculator widget, setstate 0 on value = _currentvalue doesn't work,
any ideas?