Implemented new custom sort and separated the sorted view for each car

This commit is contained in:
Dennis Nemec
2026-01-27 00:21:23 +01:00
parent 08322e6847
commit 366a3560dc
11 changed files with 181 additions and 141 deletions

View File

@ -101,8 +101,8 @@ class _DeliveryOverviewState extends State<DeliveryOverview> {
Widget build(BuildContext context) {
return RefreshIndicator(
onRefresh: _loadTour,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
child: ListView(
//crossAxisAlignment: CrossAxisAlignment.start,
children: [
DeliveryInfo(tour: widget.tour),
Padding(
@ -150,7 +150,7 @@ class _DeliveryOverviewState extends State<DeliveryOverview> {
showDialog(
context: context,
fullscreenDialog: true,
builder: (context) => CustomSortDialog(),
builder: (context) => CustomSortDialog(selectedCarId: _selectedCarId,),
);
break;
}
@ -195,11 +195,9 @@ class _DeliveryOverviewState extends State<DeliveryOverview> {
padding: const EdgeInsets.only(left: 10, right: 10, bottom: 20),
child: _carSelection(),
),
Expanded(
child: DeliveryList(
selectedCarId: _selectedCarId,
sortType: _sortType,
),
DeliveryList(
selectedCarId: _selectedCarId,
sortType: _sortType,
),
],
),