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

Loading…
Cancel
Save