Skip to content

Commit

Permalink
chore: remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
ice-alcides committed Dec 30, 2024
1 parent acb3033 commit 559e765
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lib/app/features/core/model/media_type.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// SPDX-License-Identifier: ice License 1.0

import 'package:flutter/material.dart';
import 'package:ion/app/extensions/extensions.dart';

enum MediaType {
image,
video,
Expand Down Expand Up @@ -47,13 +44,4 @@ enum MediaType {
static bool isAudioUrl(String url) {
return RegExp(r'https?://\S+\.(?:mp3|wav|ogg|flac|aac|wma)').hasMatch(url);
}

String title(BuildContext context) {
return switch (this) {
MediaType.image => context.i18n.gallery_add_photo_title,
MediaType.video => context.i18n.common_add_video,
MediaType.audio => context.i18n.common_add_audio,
MediaType.unknown => '',
};
}
}

0 comments on commit 559e765

Please sign in to comment.