add stepper to prescription generator

This commit is contained in:
2025-06-09 12:49:08 +02:00
parent 503580066d
commit 39ea6566f5
3 changed files with 123 additions and 106 deletions

View File

@@ -36,11 +36,9 @@ class _MihNumericStepperState extends State<MihNumericStepper> {
@override
void initState() {
super.initState();
setState(() {
_currentValue =
int.tryParse(widget.controller.text) ?? widget.minValue ?? 0;
widget.controller.text = _currentValue.toString();
});
_currentValue =
int.tryParse(widget.controller.text) ?? widget.minValue ?? 0;
widget.controller.text = _currentValue.toString();
print("Current Value: $_currentValue");
}