lrc
1.0.2, released 3 years ago by yivan.rf.gd
Creates, parses, formats, and handles LRC song lyrics strings.
WASM-ready
What it does
A Dart-only package that parses LRC formatted string content into structured data models. It allows creating LRC lyrics from scratch, formatting objects back to strings, and streaming lyrics according to their timestamps.
AI-written summary of version 1.0.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display time-synced song lyrics in a Flutter or Dart app
- You need to parse or generate LRC lyrics files as strings
Skip it when
- You need to read files directly from disk without manually loading them into a string first
Strengths
- Supports simple, extended, and enhanced LRC types
- Provides extension methods for seamless string parsing and formatting
- Includes built-in streaming capabilities for lyrics synchronization
Weaknesses
- Does not accept files directly; strings must be extracted manually first
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:lrc/lrc.dart';
String unparsedLrc = """
[ti:Never Gonna Give You Up]
[ar:Rick Astley]
[00:18.78]We're no strangers to love
""";
Lrc parsedLrc = unparsedLrc.toLrc();Alternatives
Packages that do the same job and could replace lrc.
- fc_native_video_thumbnail
Generate video thumbnails using native platform APIs
80Compare