|
|
|
@@ -96,7 +96,22 @@ class _InfinityViewState extends State<InfinityView> { |
|
|
|
} |
|
|
|
if (state is PlotDetailSuccess) { |
|
|
|
if (state.items.isEmpty) { |
|
|
|
return Center(child: Text("Không có dữ liệu lịch sử canh tác")); |
|
|
|
return Center( |
|
|
|
child: Column( |
|
|
|
mainAxisSize: MainAxisSize.max, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
children: [ |
|
|
|
Text("Không có dữ liệu lịch sử canh tác"), |
|
|
|
OutlineButton( |
|
|
|
onPressed: () { |
|
|
|
plotDetailBloc.add(OnRefresh( |
|
|
|
cropId: widget.cropId, cropCode: widget.cropCode)); |
|
|
|
}, |
|
|
|
child: Text('Tải lại'), |
|
|
|
) |
|
|
|
], |
|
|
|
)); |
|
|
|
} |
|
|
|
List<Activities> currentItems = List<Activities>.from(state.items); |
|
|
|
return SafeArea( |