打开特定应用程序的权限设置颤振?

Open specific app's permission setting flutter?

请问如何在Flutter中开启特定应用的权限设置?我在互联网上搜索,但没有文章告诉我如何做到这一点,只有 android 的一些解决方案,就像这样。 Open app permission settings

你好,尝试使用此代码请求权限并打开应用程序设置,例如在 permission_handler(https://pub.dev/packages/permission_handler) 程序包

的帮助下获取位置
Future<void> _request_permission(context,Function fn)async{
    final Permission location_permission=Permission.location;
    bool location_status=false;
    bool ispermanetelydenied= await location_permission.isPermanentlyDenied;
    if(ispermanetelydenied) {
      print("denied");
      await  openAppSettings();
    }else{
      var location_statu = await location_permission.request();
      location_status=location_statu.isGranted;
      print(location_status);
    }
 
  }

此功能允许您在用户永久拒绝权限的情况下打开应用程序设置和管理权限

openAppSettings();

谢谢

@azad-prajapat 当我查看包代码时,我发现了这个

/// Opens the app settings page.
  ///
  /// Returns [true] if the app settings page could be opened, otherwise
  /// [false].
  Future<bool> openAppSettings() {
    throw UnimplementedError('openAppSettings() has not been implemented.');
  }