You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.8 KiB
Dart
62 lines
1.8 KiB
Dart
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/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,
|
|
}) : super(key: key);
|
|
final bool isFirstLine;
|
|
final bool isSecondLine;
|
|
final bool isInListLine;
|
|
final bool isNurseVisit;
|
|
final bool idDoctorVisit;
|
|
final String queNo;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Column(
|
|
children: [
|
|
AppText(
|
|
queNo,
|
|
fontSize: SizeConfig.getWidthMultiplier() *
|
|
(isFirstLine
|
|
? 8
|
|
: isSecondLine
|
|
? 3.5
|
|
: 3.2),
|
|
letterSpacing: -9.32,
|
|
fontWeight: FontWeight.bold,
|
|
),
|
|
Row(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
SvgPicture.asset(isNurseVisit
|
|
? "assets/images/nurseicon.svg"
|
|
: "assets/images/doctoricon.svg", height:80 ,),
|
|
SizedBox(width: 10,),
|
|
AppText(
|
|
isNurseVisit ? "Please visit Nurse" : "Please visit doctor",
|
|
color: isNurseVisit
|
|
? AppGlobal.appGreenColor
|
|
: AppGlobal.appRedColor,
|
|
fontSize: SizeConfig.getWidthMultiplier() * (2.5),
|
|
letterSpacing: -2.6,
|
|
fontWeight: FontWeight.w600,
|
|
),
|
|
],
|
|
)
|
|
],
|
|
);
|
|
}
|
|
}
|