|
|
|
@@ -6,13 +6,10 @@ import 'package:farm_tpf/data/repository/repository.dart'; |
|
|
|
import 'package:farm_tpf/data/repository/user_repository.dart'; |
|
|
|
import 'package:farm_tpf/main.dart'; |
|
|
|
import 'package:farm_tpf/models/index.dart'; |
|
|
|
import 'package:farm_tpf/presentation/custom_widgets/app_bar_widget.dart'; |
|
|
|
import 'package:farm_tpf/presentation/custom_widgets/bottom_loader.dart'; |
|
|
|
import 'package:farm_tpf/presentation/custom_widgets/loading_list_page.dart'; |
|
|
|
import 'package:farm_tpf/presentation/screens/plot/widget_search.dart'; |
|
|
|
import 'package:farm_tpf/presentation/screens/plot_detail/sc_plot_detail.dart'; |
|
|
|
import 'package:farm_tpf/presentation/screens/plot_detail/sc_plot_information.dart'; |
|
|
|
import 'package:farm_tpf/presentation/screens/plot_detail/sc_plot_parameter.dart'; |
|
|
|
import 'package:farm_tpf/utils/const_assets.dart'; |
|
|
|
import 'package:farm_tpf/utils/const_color.dart'; |
|
|
|
import 'package:farm_tpf/utils/const_common.dart'; |
|
|
|
@@ -112,14 +109,16 @@ class _PlotListScreenState extends State<PlotListScreen> { |
|
|
|
noti = NotificationDTO.fromJson(message); |
|
|
|
} |
|
|
|
if (noti.contents == "ENV_UPDATE") { |
|
|
|
Get.to(PlotParameterScreen( |
|
|
|
Get.to(PlotDetailScreen( |
|
|
|
cropType: noti.type, |
|
|
|
cropId: noti.tbCropId, |
|
|
|
isShowAppbar: true, |
|
|
|
initialIndex: 0, |
|
|
|
)); |
|
|
|
} else if (noti.contents == "PIC_UPDATE") { |
|
|
|
Get.to(PlotInformationScreen( |
|
|
|
Get.to(PlotDetailScreen( |
|
|
|
cropType: noti.type, |
|
|
|
cropId: noti.tbCropId, |
|
|
|
isShowAppbar: true, |
|
|
|
initialIndex: 1, |
|
|
|
)); |
|
|
|
} else { |
|
|
|
//Go home |