feat(android): add attachment pending banner on boxing page

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Misaka_Company
2026-08-12 15:06:15 +08:00
parent 15c29bceb8
commit cf974cee92
4 changed files with 39 additions and 0 deletions

View File

@@ -12,6 +12,8 @@ class BoxingNoticeBanners extends StatelessWidget {
final int remainingQuantity;
final String? zongpaiNo;
final int? completedJumpBoxNo;
final bool attachmentPending;
final int attachmentPendingCount;
final VoidCallback onJumpToCompletedBox;
const BoxingNoticeBanners({
@@ -26,6 +28,8 @@ class BoxingNoticeBanners extends StatelessWidget {
required this.remainingQuantity,
required this.zongpaiNo,
required this.completedJumpBoxNo,
this.attachmentPending = false,
this.attachmentPendingCount = 0,
required this.onJumpToCompletedBox,
});
@@ -76,6 +80,21 @@ class BoxingNoticeBanners extends StatelessWidget {
),
);
}
if (attachmentPending) {
banners.add(
_NoticeBanner(
icon: Icon(
Icons.warning_amber,
size: 14,
color: Colors.amber.shade900,
),
text: '本单有附件,尚未到齐(剩 $attachmentPendingCount 种)',
background: Colors.amber.shade50,
foreground: Colors.amber.shade900,
border: Colors.amber.shade200,
),
);
}
if (isDuplicateBoxNo && phase == BoxingPhase.scanned) {
banners.add(
_NoticeBanner(