quick_look 0.0.4 copy "quick_look: ^0.0.4" to clipboard
quick_look: ^0.0.4 copied to clipboard

outdated

Package for opening files in iOS QuickLook. You will first need to save the files to the ApplicationDocumentsDirectory().

quick_look #

This plugin lets us to use Apple QuickLook (QLPreviewController).

Getting Started #

In order to open the file, do the following #

import 'package:flutter/services.dart' show rootBundle;
import 'package:path_provider/path_provider.dart';
import 'package:quick_look/quick_look.dart';

...

final byteData = await rootBundle.load('assets/$path');
final String directory =
    (await getApplicationDocumentsDirectory()).path;
final tempFile = await File('$directory/$path').writeAsBytes(
    byteData.buffer.asUint8List(
        byteData.offsetInBytes, byteData.lengthInBytes));
await QuickLook.openURL(tempFile.path);

To see, which kind of files you can open, see Apple Documentation #

5
likes
0
pub points
84%
popularity

Publisher

unverified uploader

Package for opening files in iOS QuickLook. You will first need to save the files to the ApplicationDocumentsDirectory().

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on quick_look