|
|
|
|
@ -14,8 +14,8 @@ class MyHomePage extends StatefulWidget {
|
|
|
|
|
|
|
|
|
|
String title ="MyHomePage";
|
|
|
|
|
bool haveOnePatient = false;
|
|
|
|
|
bool haveLessThan3Patient = true;
|
|
|
|
|
bool haveListOfPatient = true;
|
|
|
|
|
bool have3Patient = true;
|
|
|
|
|
bool haveListOfPatient = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@ -35,22 +35,25 @@ class _MyHomePageState extends State<MyHomePage> {
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
FirstColumn(
|
|
|
|
|
haveLessThan3Patient: widget.haveLessThan3Patient,
|
|
|
|
|
have3Patient: widget.have3Patient,
|
|
|
|
|
),
|
|
|
|
|
const SizedBox(
|
|
|
|
|
width: 40,
|
|
|
|
|
),
|
|
|
|
|
if(widget.haveListOfPatient)
|
|
|
|
|
Container(
|
|
|
|
|
width: 10,
|
|
|
|
|
height:SizeConfig.getHeightMultiplier()*40,
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
),
|
|
|
|
|
if(widget.haveListOfPatient)
|
|
|
|
|
const SizedBox(
|
|
|
|
|
width: 40,
|
|
|
|
|
),
|
|
|
|
|
if(widget.haveListOfPatient)
|
|
|
|
|
const QueItemList()
|
|
|
|
|
],
|
|
|
|
|
): FirstColumn(haveLessThan3Patient: widget.haveLessThan3Patient,),
|
|
|
|
|
): FirstColumn(have3Patient: widget.have3Patient,),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
bottomSheet: Container(
|
|
|
|
|
@ -81,9 +84,9 @@ class _MyHomePageState extends State<MyHomePage> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class FirstColumn extends StatelessWidget {
|
|
|
|
|
final bool haveLessThan3Patient;
|
|
|
|
|
final bool have3Patient;
|
|
|
|
|
|
|
|
|
|
const FirstColumn({Key key, this.haveLessThan3Patient = false}) : super(key: key);
|
|
|
|
|
const FirstColumn({Key key, this.have3Patient = false}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
@ -93,7 +96,7 @@ class FirstColumn extends StatelessWidget {
|
|
|
|
|
const QueItem(queNo: "OBG-T45", isFirstLine: true, isNurseVisit: true, haveListOfPatient: true,),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: SizeConfig.getHeightMultiplier() * 5,),
|
|
|
|
|
if(haveLessThan3Patient)
|
|
|
|
|
if(have3Patient)
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
|
children: const [
|
|
|
|
|
|