fix void
This commit is contained in:
parent
ab2d7d7be5
commit
60fec68a92
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user