|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
import 'package:flutter_svg/flutter_svg.dart';
|
|
|
|
|
import 'package:queuing_system/core/config/config.dart';
|
|
|
|
|
import 'package:queuing_system/core/config/size_config.dart';
|
|
|
|
|
import 'package:queuing_system/home/que_item/que_item_widget.dart';
|
|
|
|
|
import 'package:queuing_system/widget/data_display/app_texts_widget.dart';
|
|
|
|
|
|
|
|
|
|
class QueItem extends StatelessWidget {
|
|
|
|
|
const QueItem({
|
|
|
|
|
Key key,
|
|
|
|
|
this.isFirstLine = false,
|
|
|
|
|
this.isSecondLine = false,
|
|
|
|
|
this.isInListLine = false,
|
|
|
|
|
this.queNo,
|
|
|
|
|
this.isNurseVisit = false,
|
|
|
|
|
this.idDoctorVisit = false, this.haveListOfPatient
|
|
|
|
|
}) : super(key: key);
|
|
|
|
|
final bool isFirstLine;
|
|
|
|
|
final bool isSecondLine;
|
|
|
|
|
final bool isInListLine;
|
|
|
|
|
final bool isNurseVisit;
|
|
|
|
|
final bool idDoctorVisit;
|
|
|
|
|
final String queNo;
|
|
|
|
|
final bool haveListOfPatient;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return haveListOfPatient?
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.all(45.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
QueItemWidget(
|
|
|
|
|
isFirstLine: isFirstLine,
|
|
|
|
|
isNurseVisit: isNurseVisit,
|
|
|
|
|
isSecondLine: isSecondLine,
|
|
|
|
|
queNo: queNo,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
:Row(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.only(right: 20.0, left: 20.0),
|
|
|
|
|
child: AppText(
|
|
|
|
|
queNo,
|
|
|
|
|
fontSize: SizeConfig.getWidthMultiplier() *
|
|
|
|
|
(isFirstLine
|
|
|
|
|
? 13
|
|
|
|
|
: isSecondLine
|
|
|
|
|
? 8.5
|
|
|
|
|
: 4.7),
|
|
|
|
|
letterSpacing: -3.26,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
const SizedBox(width: 30,),
|
|
|
|
|
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
SvgPicture.asset(
|
|
|
|
|
isNurseVisit
|
|
|
|
|
? "assets/images/nurseicon.svg"
|
|
|
|
|
: "assets/images/doctoricon.svg", height:SizeConfig.getHeightMultiplier()*2.5 ,),
|
|
|
|
|
const SizedBox(width: 4,),
|
|
|
|
|
AppText(
|
|
|
|
|
isNurseVisit ? " Please Visit Nurse" : " Please Visit Doctor",
|
|
|
|
|
color: AppGlobal.appGreyColor,
|
|
|
|
|
fontSize: SizeConfig.getWidthMultiplier() * (isFirstLine
|
|
|
|
|
? 3.3
|
|
|
|
|
: isSecondLine
|
|
|
|
|
? 3.3
|
|
|
|
|
: 3.3),
|
|
|
|
|
letterSpacing: -1.6,
|
|
|
|
|
fontFamily: 'Poppins-Medium.ttf',
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|