Merge branch 'master' of sma/fcs into master
This commit is contained in:
@@ -86,14 +86,18 @@ class PackageSearchDelegate extends SearchDelegate<Package> {
|
|||||||
}
|
}
|
||||||
return Container(
|
return Container(
|
||||||
padding: EdgeInsets.only(top: 15),
|
padding: EdgeInsets.only(top: 15),
|
||||||
child: ListView(
|
child: ListView.separated(
|
||||||
children: snapshot.data!
|
separatorBuilder: (context, index) =>
|
||||||
.map((u) => PackageListRow(
|
Divider(height: 1, color: dividerColor),
|
||||||
package: u,
|
itemCount: snapshot.data!.length,
|
||||||
|
itemBuilder: (BuildContext context, int index) {
|
||||||
|
return Column(children: [
|
||||||
|
PackageListRow(
|
||||||
|
package: snapshot.data![index],
|
||||||
callbackPackageSelect: callbackPackageSelect,
|
callbackPackageSelect: callbackPackageSelect,
|
||||||
))
|
)
|
||||||
.toList(),
|
]);
|
||||||
),
|
}),
|
||||||
);
|
);
|
||||||
} else if (snapshot.hasError) {
|
} else if (snapshot.hasError) {
|
||||||
return Container(
|
return Container(
|
||||||
|
|||||||
@@ -87,14 +87,18 @@ class PackageSearchDelegate extends SearchDelegate<Pickup> {
|
|||||||
}
|
}
|
||||||
return Container(
|
return Container(
|
||||||
padding: EdgeInsets.only(top: 15),
|
padding: EdgeInsets.only(top: 15),
|
||||||
child: ListView(
|
child: ListView.separated(
|
||||||
children: snapshot.data!.map((e) {
|
separatorBuilder: (context, index) =>
|
||||||
return PickupListRow(
|
Divider(height: 1, color: dividerColor),
|
||||||
pickup: e,
|
itemCount: snapshot.data!.length,
|
||||||
|
itemBuilder: (BuildContext context, int index) {
|
||||||
|
return Column(children: [
|
||||||
|
PickupListRow(
|
||||||
|
pickup: snapshot.data![index],
|
||||||
callbackPickupSelect: callbackPickupSelect,
|
callbackPickupSelect: callbackPickupSelect,
|
||||||
);
|
)
|
||||||
}).toList(),
|
]);
|
||||||
),
|
}),
|
||||||
);
|
);
|
||||||
} else if (snapshot.hasError) {
|
} else if (snapshot.hasError) {
|
||||||
return Container(
|
return Container(
|
||||||
|
|||||||
Reference in New Issue
Block a user