icloud_storage 2.1.0 copy "icloud_storage: ^2.1.0" to clipboard
icloud_storage: ^2.1.0 copied to clipboard

PlatformiOSmacOS
outdated

A flutter plugin for upload, download and manage files in the app's iCloud container.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'gather.dart';
import 'upload.dart';
import 'download.dart';
import 'delete.dart';
import 'move.dart';
import 'rename.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      onGenerateRoute: ((settings) {
        final args = settings.arguments;
        Widget page = const Gather();
        switch (settings.name) {
          case '/upload':
            page = Upload(containerId: args as String);
            break;
          case '/download':
            page = Download(containerId: args as String);
            break;
          case '/delete':
            page = Delete(containerId: args as String);
            break;
          case '/move':
            page = Move(containerId: args as String);
            break;
          case '/rename':
            page = Rename(containerId: args as String);
            break;
        }
        return MaterialPageRoute(builder: (_) => page);
      }),
    );
  }
}
75
likes
160
pub points
92%
popularity

Publisher

unverified uploader

A flutter plugin for upload, download and manage files in the app's iCloud container.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on icloud_storage