Finished custom sorting of deliveries
This commit is contained in:
@ -10,6 +10,7 @@ import 'package:hl_lieferservice/model/tour.dart';
|
||||
import '../../../../model/delivery.dart';
|
||||
import '../../../authentication/bloc/auth_bloc.dart';
|
||||
import '../../../authentication/bloc/auth_state.dart';
|
||||
import '../bloc/tour_state.dart';
|
||||
|
||||
class DeliveryOverview extends StatefulWidget {
|
||||
const DeliveryOverview({
|
||||
@ -186,6 +187,10 @@ class _DeliveryOverviewState extends State<DeliveryOverview> {
|
||||
Expanded(
|
||||
child: DeliveryList(
|
||||
distances: widget.distances,
|
||||
sortingInformation:
|
||||
(context.read<TourBloc>().state as TourLoaded)
|
||||
.sortingInformation
|
||||
.sorting,
|
||||
deliveries:
|
||||
_deliveries
|
||||
.where(
|
||||
|
||||
Reference in New Issue
Block a user