mirror of
https://github.com/inventree/inventree-app.git
synced 2025-07-30 17:21:28 +00:00
Bump version to 0.12.3 (#382)
* Bump version to 0.12.3 * Updates for ios * Fix for float / decimal field * Cleanup simpleNumberString * Increment build number
This commit is contained in:
@@ -476,6 +476,8 @@ class APIFormField {
|
||||
// Construct a floating point numerical input field
|
||||
Widget _constructFloatField() {
|
||||
|
||||
double initial = double.tryParse(value.toString()) ?? 0;
|
||||
|
||||
return TextFormField(
|
||||
decoration: InputDecoration(
|
||||
labelText: required ? label + "*" : label,
|
||||
@@ -484,7 +486,7 @@ class APIFormField {
|
||||
helperStyle: _helperStyle(),
|
||||
hintText: placeholderText,
|
||||
),
|
||||
initialValue: simpleNumberString(double.tryParse(value.toString()) ?? 0),
|
||||
initialValue: simpleNumberString(initial),
|
||||
keyboardType: TextInputType.numberWithOptions(signed: true, decimal: true),
|
||||
validator: (value) {
|
||||
|
||||
|
Reference in New Issue
Block a user