mirror of
https://github.com/foss42/apidash.git
synced 2025-08-06 13:51:20 +08:00
fix: file picker on linux
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
import 'dart:io';
|
||||
import 'dart:typed_data';
|
||||
import 'package:file_selector/file_selector.dart';
|
||||
import 'package:path/path.dart' as p;
|
||||
import 'package:mime_dart/mime_dart.dart';
|
||||
import 'package:uuid/uuid.dart';
|
||||
import 'package:path_provider/path_provider.dart';
|
||||
import 'package:file_picker/file_picker.dart';
|
||||
|
||||
const uuid = Uuid();
|
||||
|
||||
@ -57,7 +57,7 @@ String getTempFileName() {
|
||||
return getNewUuid();
|
||||
}
|
||||
|
||||
Future<FilePickerResult?> pickFile() async {
|
||||
FilePickerResult? pickedResult = await FilePicker.platform.pickFiles();
|
||||
Future<XFile?> pickFile() async {
|
||||
XFile? pickedResult = await openFile();
|
||||
return pickedResult;
|
||||
}
|
||||
|
Reference in New Issue
Block a user