|
|
|
|
@ -1,5 +1,7 @@
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:queuing_system/core/base/app_scaffold_widget.dart';
|
|
|
|
|
import 'package:queuing_system/core/config/config.dart';
|
|
|
|
|
import 'package:queuing_system/core/config/size_config.dart';
|
|
|
|
|
import 'package:queuing_system/header/app_header.dart';
|
|
|
|
|
import 'package:queuing_system/home/que_item.dart';
|
|
|
|
|
import 'package:queuing_system/utils/signalR_utils.dart';
|
|
|
|
|
@ -9,6 +11,10 @@ class MyHomePage extends StatefulWidget {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String title ="MyHomePage";
|
|
|
|
|
bool haveOnePatient = false;
|
|
|
|
|
bool haveLessThan3Patient = false;
|
|
|
|
|
bool haveListOfPatient = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
State<MyHomePage> createState() => _MyHomePageState();
|
|
|
|
|
@ -20,14 +26,69 @@ class _MyHomePageState extends State<MyHomePage> {
|
|
|
|
|
SignalRHelper signalRHelper= SignalRHelper();
|
|
|
|
|
return AppScaffold(
|
|
|
|
|
appBar: AppHeader(),
|
|
|
|
|
body: Center(
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: const <Widget>[
|
|
|
|
|
QueItem(queNo: "OBG-T45", isFirstLine: true,),
|
|
|
|
|
body: Column(
|
|
|
|
|
children: [
|
|
|
|
|
SizedBox(height: SizeConfig.getHeightMultiplier() * (widget.haveOnePatient?20: 5)),
|
|
|
|
|
widget.haveListOfPatient?Row(
|
|
|
|
|
children: [
|
|
|
|
|
FirstColumn(),
|
|
|
|
|
|
|
|
|
|
Container(width: 20,height:SizeConfig.getHeightMultiplier() *40,color: Colors.grey, margin: EdgeInsets.only(left: 30),),
|
|
|
|
|
Column(children: [
|
|
|
|
|
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(),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
bottomSheet: Container(
|
|
|
|
|
color: Colors.transparent,
|
|
|
|
|
height: 280,
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
padding: const EdgeInsets.only(left: 50, right: 50, bottom: 10,),
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center ,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
"Powered By",
|
|
|
|
|
letterSpacing: -2.48,
|
|
|
|
|
color: AppGlobal.appTextColor,
|
|
|
|
|
fontSize: SizeConfig.getWidthMultiplier() * 3,
|
|
|
|
|
|
|
|
|
|
),
|
|
|
|
|
const SizedBox(width: 40,),
|
|
|
|
|
Image.asset( "assets/images/cloud_logo.png",),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),// This trailing comma makes auto-formatting nicer for build methods.
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class FirstColumn extends StatelessWidget {
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
QueItem(queNo: "OBG-T45", isFirstLine: true, isNurseVisit: true,),
|
|
|
|
|
SizedBox(height: SizeConfig.getHeightMultiplier() * 5,),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
|
children: [
|
|
|
|
|
QueItem(queNo: "OBG-T45", isSecondLine: true, isNurseVisit: true,),
|
|
|
|
|
QueItem(queNo: "OBG-T45", isSecondLine: true, isNurseVisit: false,),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
), // This trailing comma makes auto-formatting nicer for build methods.
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|