production

This commit is contained in:
2026-08-28 11:13:15 +05:30
parent d7348e253f
commit 5723d373b2
162 changed files with 17924 additions and 7026 deletions

View File

@@ -1,11 +1,12 @@
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:miler/views/helpers/widgets/slide_action.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:miler/data/accepted_store.dart';
import 'package:miler/data/service_profile.dart';
import 'package:slide_to_submit_button/slide_to_submit_button.dart';
import 'package:miler/Models/stop_status.dart';
import 'package:miler/data/bag_manifest.dart';
@@ -355,18 +356,21 @@ void main() {
// file silently. The gesture goes dead and the sheet says why.
expect(find.text('Nothing to collect'), findsOneWidget);
expect(
find.text('Nothing was handed over — call the hub before you leave.'),
find.text('Nothing was handed over — call your office before you leave.'),
findsOneWidget,
);
final gate = tester.widget<IgnorePointer>(
find
.ancestor(
of: find.byType(SlideToSubmit),
matching: find.byType(IgnorePointer),
)
.first,
// ── Disabled is a different shape, not a dimmed one ──
//
// It used to be the slide control wrapped in an `IgnorePointer`, which
// is a control that still looks draggable and silently is not: the rider
// drags, nothing happens, and he learns the sheet is broken. With
// nothing to collect there is no slide control at all — just an inert
// bar carrying the reason.
expect(
find.byType(MilerSlideAction),
findsNothing,
reason: 'a gesture that cannot fire must not be offered',
);
expect(gate.ignoring, isTrue);
});
testWidgets('the outcome splits what he took from what he did not', (