| @@ -1,3 +1,4 @@ | |||
| import 'package:farm_tpf/utils/const_string.dart'; | |||
| import 'package:flutter/material.dart'; | |||
| class EditActionDiseaseScreen extends StatefulWidget { | |||
| @@ -9,6 +10,10 @@ class EditActionDiseaseScreen extends StatefulWidget { | |||
| class _EditActionDiseaseScreenState extends State<EditActionDiseaseScreen> { | |||
| @override | |||
| Widget build(BuildContext context) { | |||
| return Container(); | |||
| return Scaffold( | |||
| appBar: AppBar( | |||
| title: Text(plot_action_disease), | |||
| ), | |||
| ); | |||
| } | |||
| } | |||
| @@ -1,3 +1,4 @@ | |||
| import 'package:farm_tpf/utils/const_string.dart'; | |||
| import 'package:flutter/material.dart'; | |||
| class EditActionDungScreen extends StatefulWidget { | |||
| @@ -8,6 +9,10 @@ class EditActionDungScreen extends StatefulWidget { | |||
| class _EditActionDungScreenState extends State<EditActionDungScreen> { | |||
| @override | |||
| Widget build(BuildContext context) { | |||
| return Container(); | |||
| return Scaffold( | |||
| appBar: AppBar( | |||
| title: Text(plot_action_dung), | |||
| ), | |||
| ); | |||
| } | |||
| } | |||
| @@ -1,3 +1,4 @@ | |||
| import 'package:farm_tpf/utils/const_string.dart'; | |||
| import 'package:flutter/material.dart'; | |||
| class EditActionEndScreen extends StatefulWidget { | |||
| @@ -8,6 +9,10 @@ class EditActionEndScreen extends StatefulWidget { | |||
| class _EditActionEndScreenState extends State<EditActionEndScreen> { | |||
| @override | |||
| Widget build(BuildContext context) { | |||
| return Container(); | |||
| return Scaffold( | |||
| appBar: AppBar( | |||
| title: Text(plot_action_finish), | |||
| ), | |||
| ); | |||
| } | |||
| } | |||
| @@ -1,3 +1,4 @@ | |||
| import 'package:farm_tpf/utils/const_string.dart'; | |||
| import 'package:flutter/material.dart'; | |||
| class EditActionEnvironmentUpdate extends StatefulWidget { | |||
| @@ -10,6 +11,10 @@ class _EditActionEnvironmentUpdateState | |||
| extends State<EditActionEnvironmentUpdate> { | |||
| @override | |||
| Widget build(BuildContext context) { | |||
| return Container(); | |||
| return Scaffold( | |||
| appBar: AppBar( | |||
| title: Text(plot_action_environment_update), | |||
| ), | |||
| ); | |||
| } | |||
| } | |||
| @@ -1,3 +1,4 @@ | |||
| import 'package:farm_tpf/utils/const_string.dart'; | |||
| import 'package:flutter/material.dart'; | |||
| class EditActionHarvestScreen extends StatefulWidget { | |||
| @@ -9,6 +10,10 @@ class EditActionHarvestScreen extends StatefulWidget { | |||
| class _EditActionHarvestScreenState extends State<EditActionHarvestScreen> { | |||
| @override | |||
| Widget build(BuildContext context) { | |||
| return Container(); | |||
| return Scaffold( | |||
| appBar: AppBar( | |||
| title: Text(plot_action_harvest), | |||
| ), | |||
| ); | |||
| } | |||
| } | |||
| @@ -1,3 +1,4 @@ | |||
| import 'package:farm_tpf/utils/const_string.dart'; | |||
| import 'package:flutter/material.dart'; | |||
| class EditActionHarvestProcessScreen extends StatefulWidget { | |||
| @@ -10,6 +11,10 @@ class _EditActionHarvestProcessScreenState | |||
| extends State<EditActionHarvestProcessScreen> { | |||
| @override | |||
| Widget build(BuildContext context) { | |||
| return Container(); | |||
| return Scaffold( | |||
| appBar: AppBar( | |||
| title: Text(plot_action_harvest_process), | |||
| ), | |||
| ); | |||
| } | |||
| } | |||
| @@ -1,3 +1,4 @@ | |||
| import 'package:farm_tpf/utils/const_string.dart'; | |||
| import 'package:flutter/material.dart'; | |||
| class EditActionPackingScreen extends StatefulWidget { | |||
| @@ -9,6 +10,10 @@ class EditActionPackingScreen extends StatefulWidget { | |||
| class _EditActionPackingScreenState extends State<EditActionPackingScreen> { | |||
| @override | |||
| Widget build(BuildContext context) { | |||
| return Container(); | |||
| return Scaffold( | |||
| appBar: AppBar( | |||
| title: Text(plot_action_packing), | |||
| ), | |||
| ); | |||
| } | |||
| } | |||
| @@ -1,3 +1,4 @@ | |||
| import 'package:farm_tpf/utils/const_string.dart'; | |||
| import 'package:flutter/material.dart'; | |||
| class EditActionSellScreen extends StatefulWidget { | |||
| @@ -8,6 +9,10 @@ class EditActionSellScreen extends StatefulWidget { | |||
| class _EditActionSellScreenState extends State<EditActionSellScreen> { | |||
| @override | |||
| Widget build(BuildContext context) { | |||
| return Container(); | |||
| return Scaffold( | |||
| appBar: AppBar( | |||
| title: Text(plot_action_sell), | |||
| ), | |||
| ); | |||
| } | |||
| } | |||
| @@ -1,3 +1,4 @@ | |||
| import 'package:farm_tpf/utils/const_string.dart'; | |||
| import 'package:flutter/material.dart'; | |||
| class EditActionSprayingScreen extends StatefulWidget { | |||
| @@ -9,6 +10,10 @@ class EditActionSprayingScreen extends StatefulWidget { | |||
| class _EditActionSprayingScreenState extends State<EditActionSprayingScreen> { | |||
| @override | |||
| Widget build(BuildContext context) { | |||
| return Container(); | |||
| return Scaffold( | |||
| appBar: AppBar( | |||
| title: Text(plot_action_spraying), | |||
| ), | |||
| ); | |||
| } | |||
| } | |||
| @@ -1,3 +1,4 @@ | |||
| import 'package:farm_tpf/utils/const_string.dart'; | |||
| import 'package:flutter/material.dart'; | |||
| class EditActionUseWaterScreen extends StatefulWidget { | |||
| @@ -9,6 +10,10 @@ class EditActionUseWaterScreen extends StatefulWidget { | |||
| class _EditActionUseWaterScreenState extends State<EditActionUseWaterScreen> { | |||
| @override | |||
| Widget build(BuildContext context) { | |||
| return Container(); | |||
| return Scaffold( | |||
| appBar: AppBar( | |||
| title: Text(plot_action_use_water), | |||
| ), | |||
| ); | |||
| } | |||
| } | |||
| @@ -3,9 +3,16 @@ import 'package:farm_tpf/data/repository/repository.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/actions/crop_status/sc_edit_action_crop_status.dart'; | |||
| import 'package:farm_tpf/presentation/screens/actions/disease/sc_edit_action_disease.dart'; | |||
| import 'package:farm_tpf/presentation/screens/actions/dung/sc_edit_action_dung.dart'; | |||
| import 'package:farm_tpf/presentation/screens/actions/end/sc_edit_action_end.dart'; | |||
| import 'package:farm_tpf/presentation/screens/actions/environment_update/sc_edit_action_environment_update.dart'; | |||
| import 'package:farm_tpf/presentation/screens/actions/harvest/sc_edit_action_harvest.dart'; | |||
| import 'package:farm_tpf/presentation/screens/actions/nursery/sc_edit_action_nursery.dart'; | |||
| import 'package:farm_tpf/presentation/screens/actions/other/sc_edit_action_other.dart'; | |||
| import 'package:farm_tpf/presentation/screens/actions/plant/sc_edit_action_plant.dart'; | |||
| import 'package:farm_tpf/presentation/screens/actions/spraying/sc_edit_action_spraying.dart'; | |||
| import 'package:farm_tpf/presentation/screens/actions/use_water/sc_edit_action_user_water.dart'; | |||
| import 'package:farm_tpf/presentation/screens/plot/sc_plot.dart'; | |||
| import 'package:farm_tpf/presentation/screens/plot_detail/bloc/plot_detail_bloc.dart'; | |||
| import 'package:farm_tpf/utils/const_color.dart'; | |||
| @@ -39,14 +46,19 @@ class _PlotActionScreenState extends State<PlotActionScreen> { | |||
| actions.add(ActionType(plot_action_plant, null, EditActionPlantScreen())); | |||
| actions.add(ActionType( | |||
| plot_action_crop_status, null, EditActionCropStatusScreen())); | |||
| actions.add(ActionType(plot_action_environment_update, null, null)); | |||
| actions.add(ActionType(plot_action_dung, null, null)); | |||
| actions.add(ActionType(plot_action_spraying, null, null)); | |||
| actions.add(ActionType(plot_action_disease, null, null)); | |||
| actions.add(ActionType(plot_action_use_water, null, null)); | |||
| actions.add(ActionType( | |||
| plot_action_environment_update, null, EditActionEnvironmentUpdate())); | |||
| actions.add(ActionType(plot_action_dung, null, EditActionDungScreen())); | |||
| actions.add( | |||
| ActionType(plot_action_spraying, null, EditActionSprayingScreen())); | |||
| actions | |||
| .add(ActionType(plot_action_disease, null, EditActionDiseaseScreen())); | |||
| actions.add( | |||
| ActionType(plot_action_use_water, null, EditActionUseWaterScreen())); | |||
| actions.add(ActionType(plot_action_other, null, EditActionOtherScreen())); | |||
| actions.add(ActionType(plot_action_harvest, null, null)); | |||
| actions.add(ActionType(plot_action_finish, null, null)); | |||
| actions | |||
| .add(ActionType(plot_action_harvest, null, EditActionHarvestScreen())); | |||
| actions.add(ActionType(plot_action_finish, null, EditActionEndScreen())); | |||
| } | |||
| Widget _createActionButtons(ActionType actionType) { | |||
| @@ -10,6 +10,9 @@ const String plot_action_use_water = "Sử dụng nước"; | |||
| const String plot_action_other = "Hoạt động khác"; | |||
| const String plot_action_harvest = "Thu hoạch"; | |||
| const String plot_action_finish = "Kết thúc canh tác"; | |||
| const String plot_action_harvest_process = "Xử lý sau thu hoạch"; | |||
| const String plot_action_packing = "Đóng gói"; | |||
| const String plot_action_sell = "Xuất bán"; | |||
| const String plot_detail_title = "Lịch sử canh tác"; | |||
| const String plot_status_active = "Đang canh tác"; | |||