brand theme, allot of features, allot of bug fixes
This commit is contained in:
@@ -292,6 +292,11 @@ class _DeliveriesPageState extends ConsumerState<DeliveriesPage> {
|
||||
String action,
|
||||
String? token,
|
||||
) async {
|
||||
// Prevent any actions on warehouse delivery except map navigation
|
||||
if (delivery.isWarehouseDelivery && action != 'map') {
|
||||
return;
|
||||
}
|
||||
|
||||
if (token == null) {
|
||||
final l10n = AppLocalizations.of(context)!;
|
||||
ToastHelper.showError(context, l10n.authenticationRequired);
|
||||
@@ -621,7 +626,7 @@ class DeliveryCard extends StatelessWidget {
|
||||
const SizedBox(height: 12),
|
||||
if (delivery.deliveryAddress != null)
|
||||
Text(
|
||||
delivery.deliveryAddress!.formattedAddress,
|
||||
delivery.deliveryAddress!.formattedAddress ?? '',
|
||||
style: Theme.of(context).textTheme.bodySmall,
|
||||
maxLines: 2,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
|
||||
@@ -520,6 +520,7 @@ class _RoutesPageState extends ConsumerState<RoutesPage> {
|
||||
appBar: AppBar(
|
||||
title: Text(l10n.deliveryRoutes),
|
||||
elevation: 0,
|
||||
scrolledUnderElevation: 0,
|
||||
actions: [
|
||||
IconButton(
|
||||
icon: (routesData.isLoading || allDeliveriesData.isLoading)
|
||||
|
||||
Reference in New Issue
Block a user