|
|
|
|
@ -6,6 +6,8 @@ import 'dart:math';
|
|
|
|
|
|
|
|
|
|
import 'package:ai_save_account/ai_save_account.dart';
|
|
|
|
|
import 'package:audioplayers/audio_cache.dart';
|
|
|
|
|
|
|
|
|
|
// import 'package:audioplayers/audio_cache.dart';
|
|
|
|
|
import 'package:camera/camera.dart';
|
|
|
|
|
import 'package:convert/convert.dart';
|
|
|
|
|
import 'package:crypto/crypto.dart' as crypto;
|
|
|
|
|
@ -17,10 +19,28 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
|
//import '../my_wechat_assets_picker_fix/my_asset_picker_1.dart';
|
|
|
|
|
import 'package:fluttertoast/fluttertoast.dart';
|
|
|
|
|
import 'package:hyzp_ybqx/provider/player_region.dart';
|
|
|
|
|
// import 'package:just_audio/just_audio.dart';
|
|
|
|
|
|
|
|
|
|
import 'UserInfo.dart';
|
|
|
|
|
import 'dioFun.dart';
|
|
|
|
|
|
|
|
|
|
// final myPlayer = AudioPlayer();
|
|
|
|
|
final myPlayer = AudioCache();
|
|
|
|
|
|
|
|
|
|
// myPlayMp3({String asset = 'assets/audio/yinxiao1064.mp3'}) {
|
|
|
|
|
// // myPlayer.setAsset(asset, preload: true).then((value) {
|
|
|
|
|
// // myPlayer.play();
|
|
|
|
|
// // });
|
|
|
|
|
// // myPlayer.setAsset(asset).then((value) {
|
|
|
|
|
// // myPlayer.play();
|
|
|
|
|
// // });
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
myPlayMp3({String asset = 'audio/语音提醒.mp3'}) {
|
|
|
|
|
myPlayer.play(asset);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
////////////////////////////////////////////
|
|
|
|
|
// begin hyzp_ybqx-Commit022-区县切换新方法-OK
|
|
|
|
|
|
|
|
|
|
@ -112,7 +132,8 @@ Future doRemind() async {
|
|
|
|
|
// import 'package:audioplayers/audio_cache.dart';
|
|
|
|
|
// print("播放:语音提醒.mp3");
|
|
|
|
|
if (listReviewed.length > 0) {
|
|
|
|
|
AudioCache().play(File('audio/语音提醒.mp3').path); //语音提醒
|
|
|
|
|
// AudioCache().play(File('audio/语音提醒.mp3').path); //语音提醒
|
|
|
|
|
myPlayMp3(asset: 'audio/语音提醒.mp3');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|