2022-11-01 08:23:06 +01:00
|
|
|
// SPDX-FileCopyrightText: 2022 Iconica
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
|
2022-10-25 14:20:18 +02:00
|
|
|
import 'dart:typed_data';
|
|
|
|
|
2022-12-22 11:15:08 +01:00
|
|
|
import 'package:file_picker/file_picker.dart';
|
|
|
|
|
2022-10-25 14:20:18 +02:00
|
|
|
abstract class MediaPickerService {
|
|
|
|
/// Returns [Uint8List] based on given [ImageSource].
|
|
|
|
Future<Uint8List?> pickImageFile();
|
|
|
|
|
|
|
|
/// Returns [Uint8List] based on given [VideoSource].
|
|
|
|
Future<Uint8List?> pickVideoFile();
|
2022-12-22 09:08:49 +01:00
|
|
|
|
|
|
|
/// Returns [Uint8List] based on given [File].
|
2022-12-22 11:15:08 +01:00
|
|
|
Future<FilePickerResult?> pickFile(List<String> fileExtensions);
|
2022-10-25 14:20:18 +02:00
|
|
|
}
|