getCamera static method

Future<bool> getCamera(
  1. BuildContext context
)

Implementation

static Future<bool> getCamera(BuildContext context) async {
  return await getBase(
    context,
    Permission.camera,
    PermissonTips(
      title: "授权相机权限",
      content: "请先授权相机权限,否则会影响使用相机拍照",
      confirmText: "去授权",
      deniedText: "请授权相机权限,否则会影响使用相机拍照",
      permanentlyDeniedText: "相机权限被永久拒绝,请到设置页面手动开启",
    ),
  );
}