filter doctor by department

merge-update-with-lab-changes
Mohammad Aljammal 5 years ago
parent dc9b9e21ad
commit c0c6376f55

@ -30,7 +30,7 @@ class _BranchViewState extends State<BranchView> {
body: new ListView.builder( body: new ListView.builder(
itemBuilder: (BuildContext context, int index) { itemBuilder: (BuildContext context, int index) {
return new ExpandableListView( return new ExpandableListView(
title: "Title $index",
result2: widget.result, result2: widget.result,
val: index, val: index,
doctorsList2: widget.doctorsList); doctorsList2: widget.doctorsList);
@ -42,13 +42,13 @@ class _BranchViewState extends State<BranchView> {
} }
class ExpandableListView extends StatefulWidget { class ExpandableListView extends StatefulWidget {
final String title;
final List<String> result2; final List<String> result2;
final List<DoctorList> doctorsList2; final List<DoctorList> doctorsList2;
final val; final val;
const ExpandableListView( const ExpandableListView(
{Key key, this.title, this.result2, this.val, this.doctorsList2}) {Key key, this.result2, this.val, this.doctorsList2})
: super(key: key); : super(key: key);
@override @override
@ -83,7 +83,7 @@ class _ExpandableListViewState extends State<ExpandableListView> {
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[ children: <Widget>[
new Text( new Text(
widget.result2[widget.val].toString(), widget.result2[widget.val].toString()+" "+ "22 كم",
style: new TextStyle( style: new TextStyle(
fontWeight: FontWeight.bold, color: Colors.black), fontWeight: FontWeight.bold, color: Colors.black),
), ),

Loading…
Cancel
Save