Merge branch 'dev_v3.13.6' of http://34.17.52.79/Haroon6138/diplomatic-quarter into dev_v3.13.6

dev_v3.13.6_voipcall
Aamir Muhammad 2 years ago
commit 22b48aef92

@ -218,7 +218,7 @@ class _MyFamily extends State<MyFamily> with TickerProviderStateMixin {
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
SvgPicture.asset("assets/images/new-design/delete.svg", height: 16, color: isFemale ? Color(0Xff5A282E) : Colors.white), SvgPicture.asset("assets/images/new-design/delete.svg", height: 22, color: isFemale ? Color(0Xff5A282E) : Colors.white),
SizedBox(width: 4), SizedBox(width: 4),
Texts(TranslationBase.of(context).delete, color: isFemale ? Color(0Xff5A282E) : Colors.white, fontSize: 12, fontWeight: FontWeight.w600), Texts(TranslationBase.of(context).delete, color: isFemale ? Color(0Xff5A282E) : Colors.white, fontSize: 12, fontWeight: FontWeight.w600),
], ],
@ -404,7 +404,7 @@ class _MyFamily extends State<MyFamily> with TickerProviderStateMixin {
child: Icon( child: Icon(
Icons.delete, Icons.delete,
color: Colors.red, color: Colors.red,
size: 12, size: 22,
), ),
onTap: () { onTap: () {
acceptRemoveRequest(result.iD, 4, context); acceptRemoveRequest(result.iD, 4, context);
@ -533,7 +533,7 @@ class _MyFamily extends State<MyFamily> with TickerProviderStateMixin {
request["Status"] = status; request["Status"] = status;
this.familyFileProvider.acceptRejectFamily(request).then((value) async { this.familyFileProvider.acceptRejectFamily(request).then((value) async {
await refreshFamily(context); await refreshFamily(context);
GifLoaderDialogUtils.hideDialog(context); await GifLoaderDialogUtils.hideDialog(context);
}); });
} }
@ -553,7 +553,7 @@ class _MyFamily extends State<MyFamily> with TickerProviderStateMixin {
List<GetAllSharedRecordsByStatusList> sentRecordsList = []; List<GetAllSharedRecordsByStatusList> sentRecordsList = [];
Future getFamilyFiles() async { Future getFamilyFiles() async {
late GetAllSharedRecordsByStatusResponse familySharedRecords; GetAllSharedRecordsByStatusResponse? familySharedRecords;
if (await sharedPref.getObject(FAMILY_FILE) != null) { if (await sharedPref.getObject(FAMILY_FILE) != null) {
familySharedRecords = GetAllSharedRecordsByStatusResponse.fromJson(await sharedPref.getObject(FAMILY_FILE)); familySharedRecords = GetAllSharedRecordsByStatusResponse.fromJson(await sharedPref.getObject(FAMILY_FILE));
} }
@ -585,6 +585,7 @@ class _MyFamily extends State<MyFamily> with TickerProviderStateMixin {
GifLoaderDialogUtils.hideDialog(context); GifLoaderDialogUtils.hideDialog(context);
} catch (ex) { } catch (ex) {
familySharedRecords = GetAllSharedRecordsByStatusResponse(getAllSharedRecordsByStatusList: []); familySharedRecords = GetAllSharedRecordsByStatusResponse(getAllSharedRecordsByStatusList: []);
GifLoaderDialogUtils.hideDialog(context);
} }
} }

@ -21,7 +21,7 @@ class _NotificationsDetailsPageState extends State<NotificationsDetailsPage> {
@override @override
void initState() { void initState() {
_controller = YoutubePlayerController( _controller = YoutubePlayerController(
initialVideoId: getVideoURL()!, initialVideoId: getVideoURL(),
flags: YoutubePlayerFlags( flags: YoutubePlayerFlags(
autoPlay: true, autoPlay: true,
mute: false, mute: false,
@ -47,12 +47,14 @@ class _NotificationsDetailsPageState extends State<NotificationsDetailsPage> {
return monthName + ',${d.day},${d.year}, $hour'; return monthName + ',${d.day},${d.year}, $hour';
} }
String? getVideoURL() { String getVideoURL() {
if (widget.notification.videoURL != null && widget.notification.notificationType == "2") { if (widget.notification.videoURL != null && widget.notification.notificationType == "2") {
String videoId; String videoId;
videoId = YoutubePlayer.convertUrlToId(widget.notification.videoURL)!; videoId = YoutubePlayer.convertUrlToId(widget.notification.videoURL)!;
print(videoId); // BBAyRBTfsOU print(videoId); // BBAyRBTfsOU
return videoId; return videoId;
}else{
return "";
} }
} }

@ -288,9 +288,15 @@ class _ConfirmLogin extends State<ConfirmLogin> {
} }
Future<void> _getAvailableBiometrics() async { Future<void> _getAvailableBiometrics() async {
final bool canAuthenticateWithBiometrics = await auth.canCheckBiometrics;
final bool canAuthenticate =
canAuthenticateWithBiometrics || await auth.isDeviceSupported();
var availableBiometrics; var availableBiometrics;
try { try {
availableBiometrics = await auth.getAvailableBiometrics(); availableBiometrics = await auth.getAvailableBiometrics();
print(availableBiometrics);
} on PlatformException catch (e) { } on PlatformException catch (e) {
AppToast.showErrorToast(message: e.message!); AppToast.showErrorToast(message: e.message!);
print(e); print(e);

@ -59,12 +59,12 @@ class _InvoiceDetailState extends State<InvoiceDetail> {
widget.doctor.name!, widget.doctor.name!,
widget.doctor.doctorID!, widget.doctor.doctorID!,
widget.doctor.doctorImageURL!, widget.doctor.doctorImageURL!,
widget.doctor.speciality!, widget.doctor.speciality??[""],
widget.doctor.clinicName!, widget.doctor.clinicName!,
widget.doctor.projectName!, widget.doctor.projectName!,
DateUtil.convertStringToDate(widget.doctor.date), DateUtil.convertStringToDate(widget.doctor.date),
null, null,
widget.doctor.nationalityFlagURL!, widget.doctor.nationalityFlagURL != null ? widget.doctor.nationalityFlagURL! : "" ,
widget.doctor.doctorRate, widget.doctor.doctorRate,
widget.doctor.actualDoctorRate, widget.doctor.actualDoctorRate,
widget.doctor.noOfPatientsRate ?? 0, widget.doctor.noOfPatientsRate ?? 0,

@ -128,8 +128,10 @@ class LocationUtils {
heading: 0.0, heading: 0.0,
speed: 0.0, speed: 0.0,
speedAccuracy: 1, speedAccuracy: 1,
altitudeAccuracy: 0, altitudeAccuracy: 0.0,
headingAccuracy: 0, headingAccuracy: 0.0,
// altitudeAccuracy: 0,
// headingAccuracy: 0,
// Added by Aamir // Added by Aamir
), ),
); );

Loading…
Cancel
Save