mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-13 11:18:56 +03:30
Other Changes
This commit is contained in:
@@ -30,7 +30,7 @@ class PackageProvider extends ChangeNotifier {
|
||||
addItemVal() {
|
||||
curItemVal += 1;
|
||||
TextEditingController lbl = new TextEditingController();
|
||||
lbl.text = initialItemValue;
|
||||
lbl.text = '';
|
||||
itemValues.add(lbl);
|
||||
notifyListeners();
|
||||
}
|
||||
@@ -43,11 +43,18 @@ class PackageProvider extends ChangeNotifier {
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
// var isDuplicateItem = false;
|
||||
changeItemVal(String value, int index) {
|
||||
for (var item in filteredItems!) {
|
||||
if (item.udi_name == value) {
|
||||
itemValues[index].text = item.id;
|
||||
}
|
||||
// if(itemValues.length > 1 && value != itemValues[index-1].text){
|
||||
if (item.udi_name == value) {
|
||||
itemValues[index].text = item.id;
|
||||
}
|
||||
// }else {
|
||||
// // isDuplicateItem = true;
|
||||
// print("it is a problem!!!!!!!!!!");
|
||||
// }
|
||||
|
||||
}
|
||||
notifyListeners();
|
||||
}
|
||||
@@ -174,7 +181,7 @@ class PackageProvider extends ChangeNotifier {
|
||||
itemVals = result;
|
||||
initialItemValue = itemVals[0];
|
||||
TextEditingController newLbl = new TextEditingController();
|
||||
newLbl.text = initialItemValue;
|
||||
newLbl.text = "";
|
||||
itemValues.add(newLbl);
|
||||
notifyListeners();
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user