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