Browse Source

添加本地数据

tags/0.0.1
Weller 4 years ago
parent
commit
41ccf420cf
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lib/pages/orders_page/bloc/order_content_bloc.dart

+ 2
- 2
lib/pages/orders_page/bloc/order_content_bloc.dart View File

@@ -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<String, dynamic>.from(item));
}).toList();
}).toList());

_ordersController.add(_orders);
}


Loading…
Cancel
Save