|
|
@@ -1,5 +1,6 @@ |
|
|
|
import 'dart:async'; |
|
|
|
|
|
|
|
import 'package:pull_to_refresh/pull_to_refresh.dart'; |
|
|
|
import 'package:zhiying_base_widget/pages/orders_page/models/order_filter_model.dart'; |
|
|
|
import 'package:zhiying_base_widget/pages/orders_page/models/order_model.dart'; |
|
|
|
import 'package:zhiying_comm/util/base_bloc.dart'; |
|
|
@@ -14,7 +15,8 @@ class OrderContentBloc extends BlocBase { |
|
|
|
Stream<List<OrderModel>> get outData => _ordersController.stream; |
|
|
|
String _state; |
|
|
|
OrderFilterModel _filter; |
|
|
|
|
|
|
|
RefreshController refreshController = |
|
|
|
RefreshController(initialRefresh: false); |
|
|
|
@override |
|
|
|
void dispose() { |
|
|
|
_ordersController.close(); |
|
|
@@ -60,6 +62,10 @@ class OrderContentBloc extends BlocBase { |
|
|
|
} else { |
|
|
|
_filter.pageNo = ((int.tryParse(_filter.pageNo) ?? 1) + 1).toString(); |
|
|
|
} |
|
|
|
refreshController.refreshCompleted(); |
|
|
|
refreshController.resetNoData(); |
|
|
|
}else{ |
|
|
|
refreshController.loadNoData(); |
|
|
|
} |
|
|
|
|
|
|
|
_orders.addAll(list.map((item) { |
|
|
|