// 检查是否已有读写麦克风的权限
      bool status = await Permission.microphone.isGranted;

      //判断如果还没拥有麦克风权限就申请获取权限
      if (!status) {
        return await Permission.microphone.request().isGranted;
      }

      if (status != PermissionStatus.granted) {
        print('发生异常了。。。。');
        
      }

相关文章:

  • 2021-10-14
  • 2022-02-04
  • 2021-11-04
  • 2022-12-23
  • 2021-06-10
  • 2021-09-24
  • 2021-07-11
  • 2021-06-05
猜你喜欢
  • 2022-12-23
  • 2021-12-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案