add submit widget for mix carton

This commit is contained in:
tzw
2024-02-05 11:13:12 +06:30
parent 16ad71f257
commit ea206bed13
16 changed files with 1089 additions and 104 deletions

View File

@@ -15,6 +15,8 @@ class CartonSelectionModel extends BaseModel {
bool reachEnd = false;
List<Carton> cartons = [];
bool isLoading= false;
// for default carton
DocumentSnapshot? _lastDocument;
bool ended = false;
@@ -96,6 +98,7 @@ class CartonSelectionModel extends BaseModel {
int rowPerPage = 20;
try {
isLoading = true;
String path = "/$cartons_collection";
Query query = FirebaseFirestore.instance
.collection(path)
@@ -131,6 +134,8 @@ class CartonSelectionModel extends BaseModel {
notifyListeners();
} catch (e) {
log.warning("error:$e");
}finally{
isLoading = false;
}
}