add divider in search of packages and pickup

This commit is contained in:
sma
2024-03-02 17:54:23 +06:30
parent ef7c1e2129
commit dd1cd5b63f
2 changed files with 24 additions and 16 deletions

View File

@@ -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(