title: Flutter - Save file visible to the user
body: <p>In a Flutter project I create a pdf document. I can save the document in the path of the app.
  But the user has no access to it. Alternatively, how can I save the file to another folder where the user sees it?</p>
  
  <pre><code>import 'package:path_provider/path_provider.dart';
    Future&lt;void&gt; savePdfDocument() async {
      final PdfCreater generatedPdf = PdfCreater(document);
      final List&lt;int&gt; generatedPdfDocument = generatedPdf.buildPdf();
  
      final String dir = (await getApplicationDocumentsDirectory()).path;
      final String path = '$dir/example.pdf';
      final File file = File(path);
      file.writeAsBytesSync(generatedPdfDocument);
    }
  </code></pre>