|
|
|
@ -16,6 +16,7 @@ import '../../../data/services/db/sqflite_api.dart'; |
|
|
|
import '../../../data/services/deapsound_ai_service.dart'; |
|
|
|
import '../model/meeting_details_model.dart'; |
|
|
|
import '../model/meeting_model.dart'; |
|
|
|
import 'meeting_controller.dart'; |
|
|
|
|
|
|
|
class MeetingDetailsController extends GetxController |
|
|
|
with GetTickerProviderStateMixin { |
|
|
|
@ -24,6 +25,8 @@ class MeetingDetailsController extends GetxController |
|
|
|
|
|
|
|
late AnimationController lottieController; |
|
|
|
|
|
|
|
final _meetingController = Get.find<MeetingController>(); |
|
|
|
|
|
|
|
final PlayerController playerController = PlayerController(); |
|
|
|
RxBool isTop = false.obs; |
|
|
|
RxInt durationMax = 0.obs; |
|
|
|
@ -89,6 +92,19 @@ class MeetingDetailsController extends GetxController |
|
|
|
super.onClose(); |
|
|
|
} |
|
|
|
|
|
|
|
void popInvokedWithResult(didPop, result) { |
|
|
|
if (meetingData.value.tasktype != meetingDetails.value.tasktype) { |
|
|
|
int index = |
|
|
|
_meetingController.dataList.indexWhere((item) => item['id'] == id); |
|
|
|
if (index != -1) { |
|
|
|
final dataMap = |
|
|
|
Map<String, dynamic>.from(_meetingController.dataList[index]); |
|
|
|
dataMap['tasktype'] = meetingDetails.value.tasktype; |
|
|
|
_meetingController.dataList[index] = dataMap; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void _getAgent() async { |
|
|
|
final GetStorage storage = GetStorage(); |
|
|
|
Map userInfo = storage.read("user_info"); |
|
|
|
|