add stepper to prescription generator
This commit is contained in:
parent
503580066d
commit
39ea6566f5
3 changed files with 123 additions and 106 deletions
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue