From 449b0f30149f7e6c400410193949ca8dc7e1874e Mon Sep 17 00:00:00 2001 From: Elham Rababh Date: Mon, 21 Mar 2022 12:29:39 +0300 Subject: [PATCH] fix the row option --- lib/home/home_screen.dart | 17 ++++++++++------- lib/home/que_item/que_item.dart | 1 + 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/lib/home/home_screen.dart b/lib/home/home_screen.dart index ed77e22..17e6afb 100644 --- a/lib/home/home_screen.dart +++ b/lib/home/home_screen.dart @@ -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 { 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 { } 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 [ diff --git a/lib/home/que_item/que_item.dart b/lib/home/que_item/que_item.dart index 6ddf07c..c7b38d7 100644 --- a/lib/home/que_item/que_item.dart +++ b/lib/home/que_item/que_item.dart @@ -44,6 +44,7 @@ class QueItem extends StatelessWidget { ), Row( crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.center, children: [ SvgPicture.asset( isNurseVisit