搜索插件、代码仓与 APP 分类

插件详情v0.4.1

dart_tags

用于处理音乐标签(如 ID3)的库。使用纯 Dart 编写,可在 Flutter、Web 和 VM 项目中使用。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
427
喜欢数
23
Pub 分数
150

安装插件

flutter pub add dart_tags

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

dart_tags 是一个纯 Dart 库,用于读取和写入音乐元数据标签(如 ID3),支持多种音频格式。它使开发者能够在 Flutter、Web 和 VM 应用中管理元数据,而无需依赖特定平台。该库轻量级、跨平台,非常适合需要标签操作的应用程序,例如音乐播放器或音频编辑器。通过简单的 API,它可以轻松完成获取歌曲标题、艺术家、专辑信息以及添加自定义标签等任务。其开源性质允许社区贡献并保持透明。

适合场景

  • 读取和写入ID3标签
  • 构建音乐播放器应用
  • 编辑音频元数据
  • 创建音频管理工具
  • 与基于网络的音频平台集成

主要特点

  • 纯 Dart 实现
  • 跨平台支持
  • 支持 ID3 标签
  • 轻便且快速
  • 开源且可扩展

适合对象

  • Flutter 开发者
  • 网络音频应用
  • 桌面音频工具
  • 音频元数据管理器
  • 仅 Dart 项目

使用建议

  • 仅限ID3格式
  • 不支持其他标签类型,例如 Vorbis 注释
  • 需要手动处理文件I/O
  • 未针对大规模批量处理进行优化
  • 依赖外部文件访问权限

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Dart Tags

Coverage Status pub package Build Status Awesome Dart MIT

The library for parsing ID3 tags, written in pure Dart.

You can found sample app written with flutter framework here.

License

project under MIT license

Changelogs

full changelog

0.4.1

  • thanx to @antitim for find and reslove issue with a broken images in the tags in this [PR]
  • dependencies update

0.4.0 (Null Safety)

  • thanx for migrating to null safety to @timekone and this PR
  • updated some dependencies

0.3.1

  • implemented separate getting size of frame for id3 v2.3 and v2.4
  • added test case and asset
  • fixed typos, thanx to @algoshipda and his PR
  • fixed APIC picture type error, thanx to @algoshipda and his PR

Instalation

add dependency in pubsec.yaml

dependencies:
  dart_tags: ^0.4.0

Usage

A simple usage example:

import 'dart:io';

import 'package:dart_tags/dart_tags.dart';

main(List<String> args) {
  final tp = new TagProcessor();

  final f = new File(args[0]);

  tp.getTagsFromByteArray(f.readAsBytes()).then((l) => l.forEach((f) => print(f)));
}

Code of conduct

Please refer our code of conduct.

Features and bugs

Please feel free for feature requests and bugs at the issue tracker.

In addition

Thanx for contributing @magodo, @frankdenouter @algoshipda @timekone

Thanx for the Photo by Mink Mingle on Unsplash that we using in unit tests.

所属分类

依赖

依赖清单 3 项

源码仓库

使用此插件的项目