gs1_barcode_parser
1.1.2, released 2 years ago by mobui.ru
Library for handling and parsing the contents of GS1 barcodes.
WASM-ready
What it does
The gs1_barcode_parser package parses GS1 barcode strings, such as code-128 with FNC1, extracting application identifiers and their corresponding data values like GTIN, expiry dates, and batch numbers. It supports custom AI definitions and a wide range of standard GS1 Application Identifiers.
AI-written summary of version 1.1.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to parse GS1 barcode data and extract application identifiers in Dart or Flutter.
- You are processing supply chain or retail barcodes that use GS1 standards.
Skip it when
- You need a package that performs actual camera-based barcode scanning (this only parses the resulting string data).
Strengths
- Supports a comprehensive and growing list of GS1 Application Identifiers (AIs).
- Allows custom AI definitions.
- Works across multiple platforms including Android, iOS, Web, Windows, macOS, and Linux.
Weaknesses
- Does not include camera scanning capabilities out-of-the-box.
- Documentation outside of the basic README example is limited.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
final String barcode = ']C101040123456789011715012910ABC123 39329714711 310300052539224711 42127649716';
final parser = GS1BarcodeParser.defaultParser();
final result = parser.parse(barcode);
print(result);Alternatives
Packages that do the same job and could replace gs1_barcode_parser.