media_utils 1.0.1 copy "media_utils: ^1.0.1" to clipboard
media_utils: ^1.0.1 copied to clipboard

outdated

An help library to media format.

MediaUtils #

An easy helper class to flutter with many support formats. Suport local and web files.

example:

if (MediaUtils.isAudio(_path)) {
  // ToDo anything
}
if (MediaUtils.isVideo(_path)) {
  // ToDo anything
}
if (MediaUtils.isImage(_path)) {
  // ToDo anything
}
if (MediaUtils.isVideo(_path)) {
  // ToDo anything
}
if (MediaUtils.isApk(_path)) {
  // ToDo anything
}
if (MediaUtils.isPDF(_path)) {
  // ToDo anything
}

if (MediaUtils.isWord(_path)) {
  // ToDo anything
}
if (MediaUtils.isTxt(_path)) {
  // ToDo anything
}