|
|
|
@ -4,6 +4,7 @@ import 'package:queuing_system/core/config/config.dart';
|
|
|
|
import 'package:queuing_system/core/config/size_config.dart';
|
|
|
|
import 'package:queuing_system/core/config/size_config.dart';
|
|
|
|
import 'package:queuing_system/header/app_header.dart';
|
|
|
|
import 'package:queuing_system/header/app_header.dart';
|
|
|
|
import 'package:queuing_system/home/que_item.dart';
|
|
|
|
import 'package:queuing_system/home/que_item.dart';
|
|
|
|
|
|
|
|
import 'package:queuing_system/home/que_item_list.dart';
|
|
|
|
import 'package:queuing_system/utils/signalR_utils.dart';
|
|
|
|
import 'package:queuing_system/utils/signalR_utils.dart';
|
|
|
|
import 'package:queuing_system/widget/data_display/app_texts_widget.dart';
|
|
|
|
import 'package:queuing_system/widget/data_display/app_texts_widget.dart';
|
|
|
|
|
|
|
|
|
|
|
|
@ -12,7 +13,7 @@ class MyHomePage extends StatefulWidget {
|
|
|
|
|
|
|
|
|
|
|
|
String title ="MyHomePage";
|
|
|
|
String title ="MyHomePage";
|
|
|
|
bool haveOnePatient = false;
|
|
|
|
bool haveOnePatient = false;
|
|
|
|
bool haveLessThan3Patient = false;
|
|
|
|
bool haveLessThan3Patient = true;
|
|
|
|
bool haveListOfPatient = true;
|
|
|
|
bool haveListOfPatient = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -31,19 +32,12 @@ class _MyHomePageState extends State<MyHomePage> {
|
|
|
|
SizedBox(height: SizeConfig.getHeightMultiplier() * (widget.haveOnePatient?20: 5)),
|
|
|
|
SizedBox(height: SizeConfig.getHeightMultiplier() * (widget.haveOnePatient?20: 5)),
|
|
|
|
widget.haveListOfPatient?Row(
|
|
|
|
widget.haveListOfPatient?Row(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
FirstColumn(),
|
|
|
|
FirstColumn(haveLessThan3Patient: widget.haveLessThan3Patient,),
|
|
|
|
|
|
|
|
|
|
|
|
Container(width: 20,height:SizeConfig.getHeightMultiplier() *40,color: Colors.grey, margin: EdgeInsets.only(left: 30),),
|
|
|
|
Container(width: 20,height:SizeConfig.getHeightMultiplier() *40,color: Colors.grey, margin: EdgeInsets.only(left: 30),),
|
|
|
|
Column(children: [
|
|
|
|
QueItemList()
|
|
|
|
QueItem(queNo: "OBG-T45", isInListLine: true, isNurseVisit: true,),
|
|
|
|
|
|
|
|
QueItem(queNo: "OBG-T45", isInListLine: true, isNurseVisit: true,),
|
|
|
|
|
|
|
|
QueItem(queNo: "OBG-T45", isInListLine: true, isNurseVisit: true,),
|
|
|
|
|
|
|
|
QueItem(queNo: "OBG-T45", isInListLine: true, isNurseVisit: true,),
|
|
|
|
|
|
|
|
QueItem(queNo: "OBG-T45", isInListLine: true, isNurseVisit: true,),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
],)
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
): FirstColumn(),
|
|
|
|
): FirstColumn(haveLessThan3Patient: widget.haveLessThan3Patient,),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
bottomSheet: Container(
|
|
|
|
bottomSheet: Container(
|
|
|
|
@ -72,6 +66,9 @@ class _MyHomePageState extends State<MyHomePage> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class FirstColumn extends StatelessWidget {
|
|
|
|
class FirstColumn extends StatelessWidget {
|
|
|
|
|
|
|
|
final bool haveLessThan3Patient;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const FirstColumn({Key key, this.haveLessThan3Patient = false}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
@ -80,6 +77,7 @@ class FirstColumn extends StatelessWidget {
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
QueItem(queNo: "OBG-T45", isFirstLine: true, isNurseVisit: true,),
|
|
|
|
QueItem(queNo: "OBG-T45", isFirstLine: true, isNurseVisit: true,),
|
|
|
|
SizedBox(height: SizeConfig.getHeightMultiplier() * 5,),
|
|
|
|
SizedBox(height: SizeConfig.getHeightMultiplier() * 5,),
|
|
|
|
|
|
|
|
if(haveLessThan3Patient)
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
|