fix void
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user