title: Why is Flutter open_file not opening files on android device?
body: <p>I'm working on a mobile Flutter app. I need to show some files in the app, but on iOS the files are opening correctly and on Android it won't. Does anyone know what's the problem?</p>
  <p>here is my code:</p>
  <pre><code>if (await File(&quot;$dir/&quot; + documentName).exists()) {
      
          // if true then open file
          OpenFile.open(&quot;$dir/&quot; + documentName).whenComplete(() =&gt; Navigator.pushReplacement(
            context,
            PageRouteBuilder(
              pageBuilder: (context, animation1, animation2) =&gt; documents_page(),
              transitionDuration: const Duration(seconds: 0),
            ),
          ));
        }
  </code></pre>
  <p>I don't get any errors as well..</p>