title: Flutter MacOs access to files
body: <p>I'm trying to build app a custom desktop app in Flutter to be able to load pictures, like a gallery.
  To do so, I will ask to the user to pick a folder, and automatically it should show the pictures.</p>
  <p>Now, starting from simple things, since it's first time developing for Mac, I'm just trying to display a picture via <code>Image.file(new File)</code> method.</p>
  <pre><code>The issue that I got back is 
  
  ======== Exception caught by image resource service ================================================
  The following FileSystemException was thrown resolving an image codec:
  Cannot open file, path = 'media/preview.jpg' (OS Error: Operation not permitted, errno = 1)
  </code></pre>
  <p>I'm thinking somehow is related to the entitlements.
  What I have on my entitlements is:</p>
  <pre><code>&lt;key&gt;com.apple.security.files.user-selected.read-only&lt;/key&gt;
  &lt;true/&gt;
  &lt;key&gt;com.apple.security.files.user-selected.read-write&lt;/key&gt;
  &lt;true/&gt;
  &lt;key&gt;com.apple.security.assets.downloads.read-write&lt;/key&gt;
  &lt;true/&gt;
  &lt;key&gt;com.apple.security.assets.pictures.read-write&lt;/key&gt;
  &lt;true/&gt;
  &lt;key&gt;com.apple.security.assets.downloads.read-write&lt;/key&gt;
  &lt;true/&gt;
  </code></pre>
  <p>But since the folder from where I want to load the pictures could be anywhere, I wonder if this is the reason why I get the error.</p>