save_to_folder_ios 1.0.3 copy "save_to_folder_ios: ^1.0.3" to clipboard
save_to_folder_ios: ^1.0.3 copied to clipboard

PlatformiOS

Open the native iOS Files app to choose a folder and save the file there.

example/lib/main.dart

import 'dart:io';
import 'package:flutter/material.dart';
import 'package:save_to_folder_ios/save_to_folder_ios.dart';
import 'package:path_provider/path_provider.dart';

void main() {
  runApp(const SaveToFolderIosExampleApp());
}

class SaveToFolderIosExampleApp extends StatelessWidget {
  const SaveToFolderIosExampleApp({super.key});

  Future<void> startButtonTap() async {
    String tmpdirPath = (await getTemporaryDirectory()).path;
    String filePath = '$tmpdirPath/test.txt';
    File(filePath).writeAsStringSync('asdf');
    bool result = await SaveToFolderIos.copy('$tmpdirPath/test.txt');
    print('@@file save result = $result');
  }

  @override
  Widget build(BuildContext context) =>
      MaterialApp(home: Center(child: FilledButton(onPressed: startButtonTap, child: Text('START'))));
}
2
likes
135
points
49
downloads

Publisher

unverified uploader

Weekly Downloads

Open the native iOS Files app to choose a folder and save the file there.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on save_to_folder_ios

Packages that implement save_to_folder_ios