import 'package:get/get.dart'; import 'package:get/get_core/src/get_main.dart'; import 'package:injectable/injectable.dart'; import 'package:location/base/base_controller.dart'; import 'package:location/resource/string.gen.dart'; import 'package:location/utils/toast_util.dart'; import '../../sdk/qiyu/qi_yu_helper.dart'; @injectable class FeedBackController extends BaseController { final RxString _content = RxString(''); String get content => _content.value; void back() { Get.back(); } set content(String value) { _content.value = value; } void submit() { if (content.isEmpty) { ToastUtil.show(StringName.feedBackHint); return; } ToastUtil.show(StringName.feedBackSuccess); Get.back(); } void onCustomerServiceClick() { QiYuHelper.openCustomService(); } }