25-1/28/1
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:SEFER/constant/colors.dart';
|
||||
import 'package:SEFER/controller/functions/encrypt_decrypt.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
@@ -73,10 +74,11 @@ class ProfileController extends GetxController {
|
||||
Get.back();
|
||||
await updateColumn({
|
||||
'id': box.read(BoxName.passengerID),
|
||||
columnName: txtController.text,
|
||||
columnName: encryptionHelper.encryptData(txtController.text),
|
||||
});
|
||||
if (columnName == 'first_name') {
|
||||
box.write(BoxName.name, txtController.text);
|
||||
box.write(BoxName.name,
|
||||
encryptionHelper.encryptData(txtController.text));
|
||||
}
|
||||
|
||||
txtController.clear();
|
||||
|
||||
Reference in New Issue
Block a user