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( 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,
callbackPackageSelect: callbackPackageSelect, itemBuilder: (BuildContext context, int index) {
)) return Column(children: [
.toList(), PackageListRow(
), package: snapshot.data![index],
callbackPackageSelect: callbackPackageSelect,
)
]);
}),
); );
} else if (snapshot.hasError) { } else if (snapshot.hasError) {
return Container( return Container(

View File

@@ -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,
callbackPickupSelect: callbackPickupSelect, itemBuilder: (BuildContext context, int index) {
); return Column(children: [
}).toList(), PickupListRow(
), pickup: snapshot.data![index],
callbackPickupSelect: callbackPickupSelect,
)
]);
}),
); );
} else if (snapshot.hasError) { } else if (snapshot.hasError) {
return Container( return Container(