Merge branch 'master' of sma/fcs into master

This commit is contained in:
tzw
2024-03-02 18:15:15 +06:30
committed by Gogs
2 changed files with 24 additions and 16 deletions

View File

@@ -86,14 +86,18 @@ class PackageSearchDelegate extends SearchDelegate<Package> {
}
return Container(
padding: EdgeInsets.only(top: 15),
child: ListView(
children: snapshot.data!
.map((u) => PackageListRow(
package: u,
callbackPackageSelect: callbackPackageSelect,
))
.toList(),
),
child: ListView.separated(
separatorBuilder: (context, index) =>
Divider(height: 1, color: dividerColor),
itemCount: snapshot.data!.length,
itemBuilder: (BuildContext context, int index) {
return Column(children: [
PackageListRow(
package: snapshot.data![index],
callbackPackageSelect: callbackPackageSelect,
)
]);
}),
);
} else if (snapshot.hasError) {
return Container(

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(