Merge branch 'queuing_system_third_page' into 'development'
Queuing system third page See merge request Cloud_Solution/queuing_system!2merge-requests/2/merge
commit
f858bc0876
@ -0,0 +1,6 @@
|
|||||||
|
enum FontType {
|
||||||
|
Poppins_Bold,
|
||||||
|
poppins_Medium,
|
||||||
|
poppins_Regular,
|
||||||
|
poppins_SemiBold,
|
||||||
|
}
|
||||||
@ -0,0 +1,90 @@
|
|||||||
|
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
|
||||||
|
: 5.5),
|
||||||
|
letterSpacing: -2.6,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
SvgPicture.asset(
|
||||||
|
isNurseVisit
|
||||||
|
? "assets/images/nurseicon.svg"
|
||||||
|
: "assets/images/doctoricon.svg", height:(isFirstLine
|
||||||
|
? SizeConfig.getHeightMultiplier()*3
|
||||||
|
: isSecondLine
|
||||||
|
? SizeConfig.getHeightMultiplier()*3
|
||||||
|
: SizeConfig.getHeightMultiplier()*3) ,),
|
||||||
|
const SizedBox(width: 8,),
|
||||||
|
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',
|
||||||
|
),
|
||||||
|
],
|
||||||
|
)
|
||||||
|
],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,18 +1,26 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:queuing_system/home/que_item.dart';
|
import 'package:queuing_system/home/que_item/que_item.dart';
|
||||||
|
|
||||||
class QueItemList extends StatelessWidget {
|
class QueItemList extends StatelessWidget {
|
||||||
const QueItemList({Key key}) : super(key: key);
|
const QueItemList({Key key}) : super(key: key);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Column(children: [
|
return SizedBox(
|
||||||
QueItem(queNo: "OBG-T45", isInListLine: true, isNurseVisit: true,),
|
child: Expanded(
|
||||||
QueItem(queNo: "OBG-T45", isInListLine: true, isNurseVisit: true,),
|
child: Column(
|
||||||
QueItem(queNo: "OBG-T45", isInListLine: true, isNurseVisit: true,),
|
children: const [
|
||||||
QueItem(queNo: "OBG-T45", isInListLine: true, isNurseVisit: true,),
|
QueItem(queNo: "OBG-T45", isInListLine: true, isNurseVisit: true, haveListOfPatient: false,),
|
||||||
QueItem(queNo: "OBG-T45", isInListLine: true, isNurseVisit: true,),
|
QueItem(queNo: "OBG-T45", isInListLine: true, isNurseVisit: true, haveListOfPatient: false,),
|
||||||
|
QueItem(queNo: "OBG-T45", isInListLine: true, isNurseVisit: true, haveListOfPatient: false,),
|
||||||
|
QueItem(queNo: "OBG-T45", isInListLine: true, isNurseVisit: true, haveListOfPatient: false,),
|
||||||
|
QueItem(queNo: "OBG-T45", isInListLine: true, isNurseVisit: true, haveListOfPatient: false,),
|
||||||
|
QueItem(queNo: "OBG-T45", isInListLine: true, isNurseVisit: true, haveListOfPatient: false,),
|
||||||
|
QueItem(queNo: "OBG-T45", isInListLine: true, isNurseVisit: true, haveListOfPatient: false,),
|
||||||
|
QueItem(queNo: "OBG-T45", isInListLine: true, isNurseVisit: true, haveListOfPatient: false,),
|
||||||
|
|
||||||
],);
|
],),
|
||||||
|
),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue