file_selector 0.8.2 copy "file_selector: ^0.8.2" to clipboard
file_selector: ^0.8.2 copied to clipboard

outdated

Flutter plugin for opening and saving files.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:example/home_page.dart';
import 'package:example/get_directory_page.dart';
import 'package:example/open_text_page.dart';
import 'package:example/open_image_page.dart';
import 'package:example/open_multiple_images_page.dart';
import 'package:example/save_text_page.dart';

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

/// MyApp is the Main Application
class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'File Selector Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: HomePage(),
      routes: {
        '/open/image': (context) => OpenImagePage(),
        '/open/images': (context) => OpenMultipleImagesPage(),
        '/open/text': (context) => OpenTextPage(),
        '/save/text': (context) => SaveTextPage(),
        '/directory': (context) => GetDirectoryPage(),
      },
    );
  }
}