|
|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
import 'package:blinking_text/blinking_text.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:hmg_qline/constants/app_constants.dart';
|
|
|
|
|
import 'package:hmg_qline/utilities/enums.dart';
|
|
|
|
|
import 'package:hmg_qline/views/common_widgets/app_texts_widget.dart';
|
|
|
|
|
import 'package:hmg_qline/views/view_helpers/size_config.dart';
|
|
|
|
|
|
|
|
|
|
@ -13,6 +14,7 @@ class TicketItem extends StatelessWidget {
|
|
|
|
|
final TextDirection textDirection;
|
|
|
|
|
final String message;
|
|
|
|
|
final String roomText;
|
|
|
|
|
final ScreenTypeEnum screenTypeEnum;
|
|
|
|
|
|
|
|
|
|
const TicketItem({
|
|
|
|
|
super.key,
|
|
|
|
|
@ -23,6 +25,7 @@ class TicketItem extends StatelessWidget {
|
|
|
|
|
required this.textDirection,
|
|
|
|
|
required this.message,
|
|
|
|
|
required this.roomText,
|
|
|
|
|
required this.screenTypeEnum,
|
|
|
|
|
this.blink = false,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@ -54,37 +57,39 @@ class TicketItem extends StatelessWidget {
|
|
|
|
|
times: 0,
|
|
|
|
|
duration: const Duration(seconds: 1)),
|
|
|
|
|
const SizedBox(height: 20),
|
|
|
|
|
Directionality(
|
|
|
|
|
textDirection: textDirection,
|
|
|
|
|
child: Row(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.end,
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
message,
|
|
|
|
|
color: AppColors.blackColor,
|
|
|
|
|
letterSpacing: -1,
|
|
|
|
|
fontSize: SizeConfig.getWidthMultiplier() * 3.8,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontHeight: 1,
|
|
|
|
|
screenTypeEnum == ScreenTypeEnum.roomLevelScreen
|
|
|
|
|
? const SizedBox()
|
|
|
|
|
: Directionality(
|
|
|
|
|
textDirection: textDirection,
|
|
|
|
|
child: Row(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.end,
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
message,
|
|
|
|
|
color: AppColors.blackColor,
|
|
|
|
|
letterSpacing: -1,
|
|
|
|
|
fontSize: SizeConfig.getWidthMultiplier() * 3.8,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontHeight: 1,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
color: Colors.grey.withOpacity(0.5),
|
|
|
|
|
width: 5,
|
|
|
|
|
height: SizeConfig.getHeightMultiplier() * 0.3,
|
|
|
|
|
margin: const EdgeInsets.symmetric(horizontal: 15),
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
textDirection == TextDirection.ltr ? "$roomText: $roomNo" : " $roomNo : $roomText",
|
|
|
|
|
color: AppColors.blackColor,
|
|
|
|
|
letterSpacing: -1,
|
|
|
|
|
fontSize: SizeConfig.getWidthMultiplier() * 3.8,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontHeight: 1,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
color: Colors.grey.withOpacity(0.5),
|
|
|
|
|
width: 5,
|
|
|
|
|
height: SizeConfig.getHeightMultiplier() * 0.3,
|
|
|
|
|
margin: const EdgeInsets.symmetric(horizontal: 15),
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
textDirection == TextDirection.ltr ? "$roomText: $roomNo" : " $roomNo : $roomText",
|
|
|
|
|
color: AppColors.blackColor,
|
|
|
|
|
letterSpacing: -1,
|
|
|
|
|
fontSize: SizeConfig.getWidthMultiplier() * 3.8,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontHeight: 1,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
|