fix void
This commit is contained in:
parent
ab2d7d7be5
commit
60fec68a92
@ -1,4 +1,5 @@
|
|||||||
import 'package:auto_route/auto_route.dart';
|
import 'package:auto_route/auto_route.dart';
|
||||||
|
import 'package:collection/collection.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||||
|
|
||||||
@ -185,10 +186,13 @@ class _VoidRightPanelState extends State<VoidRightPanel> {
|
|||||||
.state
|
.state
|
||||||
.order
|
.order
|
||||||
.orderItems
|
.orderItems
|
||||||
.firstWhere(
|
.firstWhereOrNull(
|
||||||
(item) =>
|
(item) =>
|
||||||
item.id == entry.key,
|
item.id == entry.key,
|
||||||
);
|
);
|
||||||
|
if (item == null) {
|
||||||
|
return const SizedBox.shrink();
|
||||||
|
}
|
||||||
return Container(
|
return Container(
|
||||||
margin: const EdgeInsets.only(
|
margin: const EdgeInsets.only(
|
||||||
bottom: 8,
|
bottom: 8,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user