From c0c6376f55ba21f892422ea06e3881ef3730cbe4 Mon Sep 17 00:00:00 2001 From: Mohammad Aljammal Date: Mon, 31 Aug 2020 15:34:46 +0300 Subject: [PATCH] filter doctor by department --- lib/pages/BookAppointment/widgets/BranchView.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/pages/BookAppointment/widgets/BranchView.dart b/lib/pages/BookAppointment/widgets/BranchView.dart index f43b5234..82c38cb2 100644 --- a/lib/pages/BookAppointment/widgets/BranchView.dart +++ b/lib/pages/BookAppointment/widgets/BranchView.dart @@ -30,7 +30,7 @@ class _BranchViewState extends State { 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 { } class ExpandableListView extends StatefulWidget { - final String title; + final List result2; final List 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 { mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ new Text( - widget.result2[widget.val].toString(), + widget.result2[widget.val].toString()+" "+ "22 كم", style: new TextStyle( fontWeight: FontWeight.bold, color: Colors.black), ),