This commit is contained in:
Efril 2026-04-26 22:32:48 +07:00
parent ab2d7d7be5
commit 60fec68a92

View File

@ -1,4 +1,5 @@
import 'package:auto_route/auto_route.dart';
import 'package:collection/collection.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
@ -185,10 +186,13 @@ class _VoidRightPanelState extends State<VoidRightPanel> {
.state
.order
.orderItems
.firstWhere(
.firstWhereOrNull(
(item) =>
item.id == entry.key,
);
if (item == null) {
return const SizedBox.shrink();
}
return Container(
margin: const EdgeInsets.only(
bottom: 8,