From 41ccf420cf0b391be0522b69f7f6ed4e8124cabf Mon Sep 17 00:00:00 2001 From: Weller <1812208341@qq.com> Date: Fri, 16 Oct 2020 17:26:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9C=AC=E5=9C=B0=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/orders_page/bloc/order_content_bloc.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pages/orders_page/bloc/order_content_bloc.dart b/lib/pages/orders_page/bloc/order_content_bloc.dart index 4ebb1a7..ac769bb 100644 --- a/lib/pages/orders_page/bloc/order_content_bloc.dart +++ b/lib/pages/orders_page/bloc/order_content_bloc.dart @@ -43,9 +43,9 @@ class OrderContentBloc extends BlocBase { model.commissionRate = '9.2'; _orders.add(model); - _orders = list.map((item) { + _orders.addAll(list.map((item) { return OrderModel.fromJson(Map.from(item)); - }).toList(); + }).toList()); _ordersController.add(_orders); }