fix foto na tela do pets
This commit is contained in:
parent
ce6e0b4950
commit
1c328e5379
|
@ -113,13 +113,6 @@ class PetsPageModel extends FlutterFlowModel<PetsPageWidget> {
|
|||
dropDownValueController2 = FormFieldController<String>(dropDownValue2 ??= defaultDropDownText);
|
||||
log('() => ): $devUUID');
|
||||
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) async {
|
||||
devUUID = await StorageHelper().get(SQLiteStorageKey.devUUID.value, Storage.SQLiteStorage) ?? '';
|
||||
userUUID = await StorageHelper().get(SQLiteStorageKey.userUUID.value, Storage.SQLiteStorage) ?? '';
|
||||
cliUUID = await StorageHelper().get(SQLiteStorageKey.clientUUID.value, Storage.SQLiteStorage) ?? '';
|
||||
petAmountRegister = await StorageHelper().get(SQLiteStorageKey.petAmount.value, Storage.SQLiteStorage) ?? '';
|
||||
});
|
||||
|
||||
safeSetState?.call();
|
||||
log('() => ): $devUUID');
|
||||
}
|
||||
|
@ -150,6 +143,14 @@ class PetsPageModel extends FlutterFlowModel<PetsPageWidget> {
|
|||
textControllerObservation = TextEditingController();
|
||||
|
||||
initAsync();
|
||||
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) async {
|
||||
await initAsync();
|
||||
devUUID = await StorageHelper().get(SQLiteStorageKey.devUUID.value, Storage.SQLiteStorage) ?? '';
|
||||
userUUID = await StorageHelper().get(SQLiteStorageKey.userUUID.value, Storage.SQLiteStorage) ?? '';
|
||||
cliUUID = await StorageHelper().get(SQLiteStorageKey.clientUUID.value, Storage.SQLiteStorage) ?? '';
|
||||
petAmountRegister = await StorageHelper().get(SQLiteStorageKey.petAmount.value, Storage.SQLiteStorage) ?? '';
|
||||
});
|
||||
}
|
||||
|
||||
void setEditForm() {
|
||||
|
@ -191,11 +192,9 @@ class PetsPageModel extends FlutterFlowModel<PetsPageWidget> {
|
|||
textFieldFocusObservation = FocusNode();
|
||||
|
||||
item != null ? dropDownValue1 = item['gender'] ?? '' : dropDownValue1 = '';
|
||||
|
||||
item != null ? dropDownValue2 = item['size'] ?? '' : dropDownValue2 = '';
|
||||
|
||||
dropDownValueController1 = FormFieldController<String>(dropDownValue1);
|
||||
|
||||
dropDownValueController2 = FormFieldController<String>(dropDownValue2);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue