import 'package:domain/entity/response/job_list_applied_edit_entity.dart';
import 'package:flutter/material.dart';
import 'package:plugin_basic/basic_export.dart';

class JobAppliedEditState {
  //表单的校验与数据
  Map<String, Map<String, dynamic>> formData = {
    'add_hours': {
      'value': '',
      'controller': TextEditingController(),
      'focusNode': FocusNode(),
      'hintText': '0',
      'obsecure': false,
    },
    'total_room': {
      'value': '',
      'controller': TextEditingController(),
      'focusNode': FocusNode(),
      'hintText': '0',
      'obsecure': false,
    },
    'reason': {
      'value': '',
      'controller': TextEditingController(),
      'focusNode': FocusNode(),
      'hintText': 'Enter...'.tr,
      'obsecure': false,
    },
  };

  JobListAppliedEditEntity? appliedEditView;

  String? appliedId;

  //功能选项
  final editOption = ['None'.tr, 'Forgot to clock in/out'.tr, 'Technical issue'.tr, 'Others'.tr];

  //选项默认选中索引为0
  int editOptionPosition = 0;
}
