|
|
|
|
@ -12,6 +12,7 @@ import 'package:doctor_app_flutter/widgets/shared/user-guid/CusomRow.dart';
|
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:cached_network_image/cached_network_image.dart';
|
|
|
|
|
import 'package:flutter_svg/flutter_svg.dart';
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
import '../../../util/extenstions.dart';
|
|
|
|
|
|
|
|
|
|
@ -61,7 +62,7 @@ class PatientCard extends StatelessWidget {
|
|
|
|
|
decoration: Helpers.getCardBoxDecoration(),
|
|
|
|
|
child: CardWithBgWidget(
|
|
|
|
|
padding: 0,
|
|
|
|
|
marginLeft: (!isMyPatient && isInpatient) ? 0 : 10,
|
|
|
|
|
marginLeft: (!isMyPatient && isInpatient) ||isFromLiveCare ? 0 : 10,
|
|
|
|
|
marginSymmetric: isFromSearch ? 10 : 0.0,
|
|
|
|
|
hasBorder: false,
|
|
|
|
|
bgColor: isFromLiveCare
|
|
|
|
|
@ -466,11 +467,11 @@ class PatientCard extends StatelessWidget {
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.all(4),
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
'assets/images/livecare.png',
|
|
|
|
|
height: 25,
|
|
|
|
|
width: 35,
|
|
|
|
|
color: Colors.grey.shade700,
|
|
|
|
|
child: SvgPicture.asset(
|
|
|
|
|
'assets/images/svgs/profile_screen/livecare.svg',
|
|
|
|
|
height: 20,
|
|
|
|
|
width: 20,
|
|
|
|
|
// color: Colors.grey.shade700,
|
|
|
|
|
)),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
@ -480,15 +481,15 @@ class PatientCard extends StatelessWidget {
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.all(4),
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
child: SvgPicture.asset(
|
|
|
|
|
patientInfo.appointmentType ==
|
|
|
|
|
'Regular' &&
|
|
|
|
|
patientInfo.visitTypeId == 100
|
|
|
|
|
? 'assets/images/livecare.png'
|
|
|
|
|
? 'assets/images/svgs/profile_screen/livecare.svg'
|
|
|
|
|
: patientInfo.appointmentType ==
|
|
|
|
|
'Walkin'
|
|
|
|
|
? 'assets/images/walkin.png'
|
|
|
|
|
: 'assets/images/booked.png',
|
|
|
|
|
? 'assets/images/svgs/profile_screen/walkin.svg'
|
|
|
|
|
: 'assets/images/svgs/profile_screen/booked.svg',
|
|
|
|
|
height: 25,
|
|
|
|
|
width: 35,
|
|
|
|
|
)),
|
|
|
|
|
|