Skip to content

Commit 0efe9dc

Browse files
authored
chore: added mxf file support for adding files and drag and drop optoon (#43)
1 parent 3b1f2b3 commit 0efe9dc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/screens/dashboard/components/add_files.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class AddFilesButton extends StatelessWidget {
2525
'mpg2',
2626
'vob',
2727
'mkv',
28+
'mxf',
2829
],
2930
mimeTypes: ['video/*'],
3031
),

lib/screens/dashboard/dashboard.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class _DashboardState extends State<Dashboard> {
4848
final List<XFile> fileData = data.files;
4949
List<XFile> validFiles = [];
5050
RegExp validExtensions = RegExp(
51-
r'(\.dvr-ms|\.m2v|\.mpg|\.ts|\.wtv|\.mp4|\.mpg2|\.vob|\.mkv)$');
51+
r'(\.dvr-ms|\.m2v|\.mpg|\.ts|\.wtv|\.mp4|\.mpg2|\.vob|\.mkv|\.mxf)$');
5252
print(validExtensions.hasMatch(fileData[0].path));
5353
for (XFile file in fileData) {
5454
if (validExtensions.hasMatch(file.path)) {

0 commit comments

Comments
 (0)