import 'dart:io';
import 'dart:typed_data';

import 'package:file_picker_cross/file_picker_cross.dart';

FilePickerCross openFileByUri(String url) {
  Uint8List bytes = File(url).readAsBytesSync();
  return (FilePickerCross(bytes,
      path: url, type: FileTypeCross.custom, fileExtension: 'xopp'));
}
