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), ),