Contact us

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

@ -36,110 +36,124 @@ 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: [ children: [
SizedBox( Stack(
height: 20, children: [
), Column(
Container( crossAxisAlignment: CrossAxisAlignment.start,
width: double.infinity,
height: 200, children: [
decoration: BoxDecoration( SizedBox(
image: DecorationImage( height: 20,
image: ExactAssetImage( ),
'assets/images/dashboard_top_bg.png'), Container(
fit: BoxFit.cover), width: double.infinity,
), height: 200,
child: Texts(
'You can now talk directly to the appointments department by chat or request a call back\n \nChoose Hospital :',
color: Colors.white,
textAlign: TextAlign.center,
),
),
///////////
...List.generate(
model.LiveChatModelList.length,
(index) => Container(
margin:
EdgeInsets.only(left: 20, right: 20, bottom: 20),
decoration: BoxDecoration( decoration: BoxDecoration(
shape: BoxShape.rectangle, image: DecorationImage(
border: Border.all(color: Colors.white, width: 0.5), image: ExactAssetImage(
borderRadius: BorderRadius.all(Radius.circular(5)), 'assets/images/dashboard_top_bg.png'),
color: tappedIndex == index fit: BoxFit.cover),
? Colors.red
: Colors.white,
), ),
child: Padding( child: Padding(
padding: const EdgeInsets.all(8.0), padding: const EdgeInsets.all(8.0),
child: Column( child: Texts(
crossAxisAlignment: CrossAxisAlignment.start, 'You can now talk directly to the appointments department by chat or request a call back\n \nChoose Hospital :',
children: <Widget>[ color: Colors.white,
InkWell( textAlign: TextAlign.start,
onTap: () { ),
setState(() { ),
tappedIndex = index; ),
chat = SizedBox(height: MediaQuery.of(context).size.height*0.85,),
"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}";
}); SizedBox(
}, height: 100,
child: Row( ),
mainAxisAlignment: MainAxisAlignment.end, ],
),
Positioned(
left: 13,
right: 13,
top:200,
child: Container(width: double.maxFinite,
child: Column(
children: [
...List.generate(
model.LiveChatModelList.length,
(index) => Container(
margin:
EdgeInsets.only(left: 0, right: 0, bottom: 20),
decoration: BoxDecoration(
shape: BoxShape.rectangle,
border: Border.all(color: Colors.white, width: 0.5),
borderRadius: BorderRadius.all(Radius.circular(5)),
color: tappedIndex == index
? Colors.red
: Colors.white,
),
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[ children: <Widget>[
Expanded( InkWell(
child: Row( onTap: () {
mainAxisAlignment: setState(() {
MainAxisAlignment.spaceAround, tappedIndex = index;
crossAxisAlignment: chat =
CrossAxisAlignment.center, "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(
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),
child: Texts( child: Texts(
'${model.LiveChatModelList[index].projectName}', '${model.LiveChatModelList[index].projectName}',
color: color:
tappedIndex == index tappedIndex == index
? Colors.white ? Colors.white
: Colors.black, : Colors.black,
textAlign: textAlign:
TextAlign.center, TextAlign.center,
))), //model.cOCItemList[index].cOCTitl ))), //model.cOCItemList[index].cOCTitl
Expanded( IconButton(
flex: 1, icon: Icon(
child: Row( Icons
children: [ .arrow_forward_rounded,
IconButton( color:
icon: Icon( tappedIndex == index
Icons ? Colors.white
.arrow_forward_rounded, : Colors.black,
color:
tappedIndex == index
? Colors.white
: Colors.black,
),
tooltip: '',
onPressed: () {
setState(() {});
},
),
],
), ),
tooltip: '',
onPressed: () {
setState(() {});
},
), ),
], ],
), ),
), )
], ],
), ),
) ),
], )),
), ],
), ),),
)), ),
SizedBox( ],
height: 100,
), ),
Container(
height: MediaQuery.of(context).size.height * 0.20,
width: double.maxFinite,
)
], ],
), ),
), ),
@ -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