step 13 : fix ui based figma, fix isSelfie button di presensi screen & presensi selfie screen
This commit is contained in:
@@ -381,7 +381,8 @@ class PresensiSelfieScreen extends HookConsumerWidget {
|
||||
T_TransactionCurrentLongitude,
|
||||
"T_TransactionCurrentDistance":
|
||||
T_TransactionCurrentDistance,
|
||||
"T_TransactionSelfiePhoto": "data:image/jpeg;base64,$T_TransactionSelfiePhoto",
|
||||
"T_TransactionSelfiePhoto":
|
||||
"data:image/jpeg;base64,$T_TransactionSelfiePhoto",
|
||||
"token": token,
|
||||
"isSelfie": "TRUE"
|
||||
};
|
||||
@@ -672,7 +673,8 @@ class PresensiSelfieScreen extends HookConsumerWidget {
|
||||
|
||||
// upload file
|
||||
if (varCurrentCheckJamProvider?.isAbsenClockIn == "TRUE" &&
|
||||
varCurrentCheckJamProvider?.isAbsenClockOut == "TRUE") ...[
|
||||
varCurrentCheckJamProvider?.isAbsenClockOut ==
|
||||
"TRUE") ...[
|
||||
SizedBox.shrink()
|
||||
] else ...[
|
||||
if (varCurrentCheckJamProvider?.isAbsenClockIn == "FALSE" &&
|
||||
@@ -715,15 +717,28 @@ class PresensiSelfieScreen extends HookConsumerWidget {
|
||||
|
||||
// button clock in dan clock out
|
||||
if (varCurrentCheckJamProvider?.isAbsenClockIn == "TRUE" &&
|
||||
varCurrentCheckJamProvider?.isAbsenClockOut == "TRUE") ...[
|
||||
varCurrentCheckJamProvider?.isAbsenClockOut ==
|
||||
"TRUE") ...[
|
||||
SizedBox.shrink()
|
||||
] else ...[
|
||||
if (varCurrentCheckJamProvider?.isAbsenClockIn == "FALSE" &&
|
||||
varCurrentCheckJamProvider?.jamClockIn == "") ...[
|
||||
// gambar icon presensi clock in
|
||||
(isLoadingAddressUserLocation.value)
|
||||
? Center(
|
||||
child: CircularProgressIndicator(),
|
||||
? Padding(
|
||||
padding: EdgeInsets.only(
|
||||
left: Constant.getActualXPhone(
|
||||
context: context, x: 20),
|
||||
right: Constant.getActualXPhone(
|
||||
context: context, x: 20),
|
||||
top: Constant.getActualYPhone(
|
||||
context: context, y: 24),
|
||||
bottom: Constant.getActualYPhone(
|
||||
context: context, y: 24),
|
||||
),
|
||||
child: Center(
|
||||
child: CircularProgressIndicator(),
|
||||
),
|
||||
)
|
||||
: Padding(
|
||||
padding: EdgeInsets.only(
|
||||
@@ -831,10 +846,7 @@ class PresensiSelfieScreen extends HookConsumerWidget {
|
||||
"TRUE" &&
|
||||
varCurrentCheckJamProvider?.jamClockIn != "") ...[
|
||||
(isLoadingAddressUserLocation.value)
|
||||
? Center(
|
||||
child: CircularProgressIndicator(),
|
||||
)
|
||||
: Padding(
|
||||
? Padding(
|
||||
padding: EdgeInsets.only(
|
||||
left: Constant.getActualXPhone(
|
||||
context: context, x: 20),
|
||||
@@ -845,6 +857,21 @@ class PresensiSelfieScreen extends HookConsumerWidget {
|
||||
bottom: Constant.getActualYPhone(
|
||||
context: context, y: 24),
|
||||
),
|
||||
child: Center(
|
||||
child: CircularProgressIndicator(),
|
||||
),
|
||||
)
|
||||
: Padding(
|
||||
padding: EdgeInsets.only(
|
||||
left: Constant.getActualXPhone(
|
||||
context: context, x: 20),
|
||||
right: Constant.getActualXPhone(
|
||||
context: context, x: 20),
|
||||
top: Constant.getActualYPhone(
|
||||
context: context, y: 24),
|
||||
// bottom: Constant.getActualYPhone(
|
||||
// context: context, y: 24),
|
||||
),
|
||||
child: SizedBox(
|
||||
width: Constant.getActualXPhone(
|
||||
context: context, x: 390),
|
||||
|
||||
Reference in New Issue
Block a user