fix imgs
This commit is contained in:
parent
38b126dcb6
commit
f550b71f7d
|
@ -215,14 +215,14 @@ class PetsPageModel extends FlutterFlowModel<PetsPageWidget> {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> registerPet() async {
|
Future<void> registerPet() async {
|
||||||
|
var img = await actions.convertImageFileToBase64(uploadedLocalFile!);
|
||||||
|
img = "base64;jpeg,$img";
|
||||||
await PhpGroup.registerPet
|
await PhpGroup.registerPet
|
||||||
.call(
|
.call(
|
||||||
cliID: AppState().cliUUID,
|
cliID: AppState().cliUUID,
|
||||||
devUUID: AppState().devUUID,
|
devUUID: AppState().devUUID,
|
||||||
userUUID: AppState().userUUID,
|
userUUID: AppState().userUUID,
|
||||||
image: await actions.convertImageFileToBase64(
|
image: img,
|
||||||
uploadedLocalFile!,
|
|
||||||
),
|
|
||||||
birthdayDate: textControllerData!.text,
|
birthdayDate: textControllerData!.text,
|
||||||
color: textControllerColor!.text,
|
color: textControllerColor!.text,
|
||||||
breed: textControllerRace!.text,
|
breed: textControllerRace!.text,
|
||||||
|
|
Loading…
Reference in New Issue