upgrade packages

This commit is contained in:
tzw
2024-01-09 13:11:22 +06:30
parent cbd8ddad08
commit 3e1c61a9f6
32 changed files with 193 additions and 150 deletions

View File

@@ -42,7 +42,7 @@ class _LengthPickerState extends State<LengthPicker> {
}
_setText() {
double v = double.parse(widget.controller!.text, (s) => 0);
double v = double.parse(widget.controller!.text);
int _v = v.toInt();
int f = (v / 12).floor();
@@ -107,7 +107,7 @@ class _LengthPickerDialogState extends State<LengthPickerDialog> {
_valueFeet = 0;
_valueInc = 0;
if (widget.controller != null) {
double v = double.parse(widget.controller!.text, (s) => 0);
double v = double.parse(widget.controller!.text);
_valueFeet = (v / 12).floor();
_valueInc = widget.displayFeet! ? (v % 12).toInt() : v.toInt();
inchInputController.text = _valueInc.toString();