Contact us

merge-update-with-lab-changes
Amjad amireh 6 years ago
parent 50d862b076
commit 5ce252d296

@ -36,6 +36,13 @@ class _HospitalsLiveChatPageState extends State<HospitalsLiveChatPage> {
child: Container( child: Container(
margin: EdgeInsets.only(left: 15, right: 15), margin: EdgeInsets.only(left: 15, right: 15),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Stack(
children: [
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
SizedBox( SizedBox(
height: 20, height: 20,
@ -49,18 +56,34 @@ class _HospitalsLiveChatPageState extends State<HospitalsLiveChatPage> {
'assets/images/dashboard_top_bg.png'), 'assets/images/dashboard_top_bg.png'),
fit: BoxFit.cover), fit: BoxFit.cover),
), ),
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Texts( child: Texts(
'You can now talk directly to the appointments department by chat or request a call back\n \nChoose Hospital :', 'You can now talk directly to the appointments department by chat or request a call back\n \nChoose Hospital :',
color: Colors.white, color: Colors.white,
textAlign: TextAlign.center, textAlign: TextAlign.start,
),
),
), ),
SizedBox(height: MediaQuery.of(context).size.height*0.85,),
SizedBox(
height: 100,
),
],
), ),
/////////// Positioned(
left: 13,
right: 13,
top:200,
child: Container(width: double.maxFinite,
child: Column(
children: [
...List.generate( ...List.generate(
model.LiveChatModelList.length, model.LiveChatModelList.length,
(index) => Container( (index) => Container(
margin: margin:
EdgeInsets.only(left: 20, right: 20, bottom: 20), EdgeInsets.only(left: 0, right: 0, bottom: 20),
decoration: BoxDecoration( decoration: BoxDecoration(
shape: BoxShape.rectangle, shape: BoxShape.rectangle,
border: Border.all(color: Colors.white, width: 0.5), border: Border.all(color: Colors.white, width: 0.5),
@ -82,18 +105,13 @@ class _HospitalsLiveChatPageState extends State<HospitalsLiveChatPage> {
"http://chat.dshmg.com:7788/hmgchatapp/hmgchattest/Index.aspx?Name=${model.user.firstName}&PatientID=${model.user.patientID}&MobileNo=${model.user.mobileNumber}&Language=en&WorkGroup=${model.LiveChatModelList[index].value}"; "http://chat.dshmg.com:7788/hmgchatapp/hmgchattest/Index.aspx?Name=${model.user.firstName}&PatientID=${model.user.patientID}&MobileNo=${model.user.mobileNumber}&Language=en&WorkGroup=${model.LiveChatModelList[index].value}";
}); });
}, },
child: Row( child:Row(
mainAxisAlignment: MainAxisAlignment.end, mainAxisAlignment: MainAxisAlignment.spaceAround,
children: <Widget>[ crossAxisAlignment: CrossAxisAlignment.center,
Expanded(
child: Row(
mainAxisAlignment:
MainAxisAlignment.spaceAround,
crossAxisAlignment:
CrossAxisAlignment.center,
children: <Widget>[ children: <Widget>[
SizedBox(width: 20,),
Expanded( Expanded(
flex: 4,
child: Container( child: Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
left: 5, right: 5), left: 5, right: 5),
@ -106,10 +124,6 @@ class _HospitalsLiveChatPageState extends State<HospitalsLiveChatPage> {
textAlign: textAlign:
TextAlign.center, TextAlign.center,
))), //model.cOCItemList[index].cOCTitl ))), //model.cOCItemList[index].cOCTitl
Expanded(
flex: 1,
child: Row(
children: [
IconButton( IconButton(
icon: Icon( icon: Icon(
Icons Icons
@ -126,20 +140,20 @@ class _HospitalsLiveChatPageState extends State<HospitalsLiveChatPage> {
), ),
], ],
), ),
), )
], ],
), ),
), ),
)),
], ],
),),
), ),
)
], ],
), ),
), Container(
)), height: MediaQuery.of(context).size.height * 0.20,
SizedBox( width: double.maxFinite,
height: 100, )
),
], ],
), ),
), ),
@ -167,3 +181,7 @@ class _HospitalsLiveChatPageState extends State<HospitalsLiveChatPage> {
); );
} }
} }

@ -56,12 +56,12 @@ class _LiveChatPageState extends State<LiveChatPage> with SingleTickerProviderSt
child: Container( child: Container(
height: 60.0, height: 60.0,
margin: EdgeInsets.only(top: 10.0), margin: EdgeInsets.only(top: 10.0),
width: MediaQuery.of(context).size.width * 0.9, width: MediaQuery.of(context).size.width *0.92,// 0.9,
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border( border: Border(
bottom: BorderSide( bottom: BorderSide(
color: Theme.of(context).dividerColor, color: Theme.of(context).dividerColor,
width: 0.7), width: 0.9),//width: 0.7
), ),
color: Colors.white), color: Colors.white),
child: Center( child: Center(
@ -69,11 +69,13 @@ class _LiveChatPageState extends State<LiveChatPage> with SingleTickerProviderSt
isScrollable: true, isScrollable: true,
controller: _tabController, controller: _tabController,
indicatorWeight: 5.0, indicatorWeight: 5.0,
indicatorSize: TabBarIndicatorSize.label, //indicatorSize: TabBarIndicatorSize.label,
indicatorSize: TabBarIndicatorSize.tab,
indicatorColor: Colors.red[800], indicatorColor: Colors.red[800],
labelColor: Theme.of(context).primaryColor, labelColor: Theme.of(context).primaryColor,
labelPadding: labelPadding:
EdgeInsets.only(top: 4.0, left: 18.0, right: 18.0), EdgeInsets.only(top: 4.0, left: 35.0, right: 35.0),
unselectedLabelColor: Colors.grey[800], unselectedLabelColor: Colors.grey[800],
tabs: [ tabs: [
Container( Container(

Loading…
Cancel
Save