add divider in search of packages and pickup
This commit is contained in:
@@ -87,14 +87,18 @@ class PackageSearchDelegate extends SearchDelegate<Pickup> {
|
||||
}
|
||||
return Container(
|
||||
padding: EdgeInsets.only(top: 15),
|
||||
child: ListView(
|
||||
children: snapshot.data!.map((e) {
|
||||
return PickupListRow(
|
||||
pickup: e,
|
||||
callbackPickupSelect: callbackPickupSelect,
|
||||
);
|
||||
}).toList(),
|
||||
),
|
||||
child: ListView.separated(
|
||||
separatorBuilder: (context, index) =>
|
||||
Divider(height: 1, color: dividerColor),
|
||||
itemCount: snapshot.data!.length,
|
||||
itemBuilder: (BuildContext context, int index) {
|
||||
return Column(children: [
|
||||
PickupListRow(
|
||||
pickup: snapshot.data![index],
|
||||
callbackPickupSelect: callbackPickupSelect,
|
||||
)
|
||||
]);
|
||||
}),
|
||||
);
|
||||
} else if (snapshot.hasError) {
|
||||
return Container(
|
||||
|
||||
Reference in New Issue
Block a user