Browse Source

Merge branch 'new_dev' of https://github.com/deepcloud2048/deep_voice into liwei

weicu
liwei1dao 1 year ago
parent
commit
fa2013025e
  1. 19
      lib/modules/meeting/views/bottomSheet/share_bottom_sheet.dart
  2. 4
      pubspec.yaml

19
lib/modules/meeting/views/bottomSheet/share_bottom_sheet.dart

@ -13,6 +13,7 @@ import 'package:share_plus/share_plus.dart';
import 'package:webview_flutter/webview_flutter.dart'; import 'package:webview_flutter/webview_flutter.dart';
import '../../../../core/utils/synchrodata.dart'; import '../../../../core/utils/synchrodata.dart';
import '../../../../data/services/version_update_service.dart';
import '../../controllers/meeting_details_controller.dart'; import '../../controllers/meeting_details_controller.dart';
import '../../controllers/mind_map_controller.dart'; import '../../controllers/mind_map_controller.dart';
import 'second_level_bottom_sheet.dart'; import 'second_level_bottom_sheet.dart';
@ -95,19 +96,25 @@ class _ShareBottomSheetState extends State<ShareBottomSheet> {
String id = String id =
'${userId}_${_controller.meetingData.value.id}'; '${userId}_${_controller.meetingData.value.id}';
final thumbnail = await getAssetThumbnailFile( // final thumbnail = await getAssetThumbnailFile(
'assets/images/headphone_dark.png', // 'assets/images/mine-background.png',
'share_thumb.png', // 'share_thumb.png',
); // );
// 获取动态服务器地址
final serverUrl = VersionUpdateService.to.cachedServerUrl;
final serverHost = serverUrl
.replaceFirst('https://', '')
.replaceFirst('http://', '');
final result = await SharePlus.instance.share(ShareParams( final result = await SharePlus.instance.share(ShareParams(
title: _controller.meetingData.value.title, title: _controller.meetingData.value.title,
subject: subject:
'Voitrans WEB,由DeepSound.Ai提供支持-实时记录会议纪要,多语言翻译。', 'Voitrans WEB,由DeepSound.Ai提供支持-实时记录会议纪要,多语言翻译。',
uri: Uri.parse( uri: Uri.parse(
'http://web.ideapsound.com/share/$id/$token', 'https://share.deepechomeet.com/share/$serverHost/voitrans.net/$id/$token',
), ),
previewThumbnail: thumbnail, //previewThumbnail: thumbnail,
)); ));
if (result.status == ShareResultStatus.success) { if (result.status == ShareResultStatus.success) {
EasyLoading.showToast('shareSuccess'.tr); // 对应中文:分享完成 EasyLoading.showToast('shareSuccess'.tr); // 对应中文:分享完成

4
pubspec.yaml

@ -23,8 +23,8 @@ dependencies:
audio_session: ^0.1.18 audio_session: ^0.1.18
flutter_markdown: ^0.7.7+1 flutter_markdown: ^0.7.7+1
markdown: ^7.1.1 markdown: ^7.1.1
fleather: ^1.24.0+1 fleather: ^1.26.0
parchment: ^1.24.0 parchment: ^1.25.1
htmltopdfwidgets: ^1.1.0 htmltopdfwidgets: ^1.1.0
wifi_iot: ^0.3.19+2 wifi_iot: ^0.3.19+2
flutter_intro: ^3.4.0 flutter_intro: ^3.4.0

Loading…
Cancel
Save