|
|
|
@@ -111,7 +111,6 @@ class _WidgetPlantSupplyState extends State<WidgetPlantSupply> { |
|
|
|
color: Colors.redAccent, |
|
|
|
), |
|
|
|
onPressed: () { |
|
|
|
print("Delete"); |
|
|
|
changeSupplyUsing.deleteSupply(index); |
|
|
|
}), |
|
|
|
) |
|
|
|
@@ -200,20 +199,13 @@ class _WidgetPlantSupplyState extends State<WidgetPlantSupply> { |
|
|
|
|
|
|
|
_quantityField() { |
|
|
|
return TextFormField( |
|
|
|
keyboardType: TextInputType.numberWithOptions(decimal: true), |
|
|
|
inputFormatters: [ |
|
|
|
ThousandsFormatter( |
|
|
|
formatter: NumberFormat("#,###.##", "es"), allowFraction: true) |
|
|
|
], |
|
|
|
decoration: InputDecoration(labelText: "Tổng lượng sử dụng"), |
|
|
|
controller: _quantityController, |
|
|
|
onSaved: (newValue) { |
|
|
|
print(newValue); |
|
|
|
}, |
|
|
|
onChanged: (v) { |
|
|
|
print(v); |
|
|
|
}, |
|
|
|
); |
|
|
|
keyboardType: TextInputType.numberWithOptions(decimal: true), |
|
|
|
inputFormatters: [ |
|
|
|
ThousandsFormatter( |
|
|
|
formatter: NumberFormat("#,###.##", "es"), allowFraction: true) |
|
|
|
], |
|
|
|
decoration: InputDecoration(labelText: "Tổng lượng sử dụng"), |
|
|
|
controller: _quantityController); |
|
|
|
} |
|
|
|
|
|
|
|
_buttonInForm() { |