Browse Source

fix show supply nursery

master
daivph 5 years ago
parent
commit
d1ef60937e
2 changed files with 8 additions and 16 deletions
  1. +1
    -1
      lib/presentation/screens/actions/nursery/sc_edit_action_nursery.dart
  2. +7
    -15
      lib/presentation/screens/actions/plant/widget_plant_supply.dart

+ 1
- 1
lib/presentation/screens/actions/nursery/sc_edit_action_nursery.dart View File

@@ -194,7 +194,7 @@ class _EditActionNurseryState extends State<EditActionNurseryScreen> {
.push(MaterialPageRoute(
builder: (_) => ResourceHelperScreen(
titleName: "Giá thể",
type: ConstCommon.supplyTypeAll,
type: ConstCommon.supplyTypeSubStrate,
selectedId: Get.find<ChangeSupply>().selectedSupplyId),
fullscreenDialog: false))
.then((value) {

+ 7
- 15
lib/presentation/screens/actions/plant/widget_plant_supply.dart View File

@@ -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() {

Loading…
Cancel
Save