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.
33 lines
1.2 KiB
Dart
33 lines
1.2 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:queuing_system/core/config/size_config.dart';
|
|
import 'package:queuing_system/home/que_item/que_item.dart';
|
|
|
|
class FirstColumn extends StatelessWidget {
|
|
final bool have3Patient;
|
|
final bool have2Patient;
|
|
|
|
const FirstColumn({Key key, this.have3Patient = false, this.have2Patient = false}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Column(
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
children: <Widget>[
|
|
const TicketItem(queNo: "OBG-T45", isFirstLine: true, isNurseVisit: true, haveListOfPatient: true,),
|
|
SizedBox(
|
|
height: SizeConfig.getHeightMultiplier() * 5,),
|
|
if(have3Patient ||have2Patient )
|
|
Row(
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
children: [
|
|
if(have2Patient || have3Patient)
|
|
const TicketItem(queNo: "OBG-T45", isSecondLine: true, isNurseVisit: false, haveListOfPatient: true,),
|
|
if(have3Patient)
|
|
const TicketItem(queNo: "OBG-T45", isSecondLine: true, isNurseVisit: true, haveListOfPatient: true,),
|
|
],
|
|
),
|
|
],
|
|
);
|
|
}
|
|
}
|