Flutter devs can parse VRM metadata without packages using 101 lines of Dart

Flutter has no published VRM package on pub.dev, and the only known Dart library, gatari/vrm_dart, throws a LateInitializationError on every VRM 1.0 file and mishandles thumbnails in VRM 0.x files. A developer tested vrm_dart and a hand-written parser against five sample VRM files on macOS Apple Silicon using Flutter 3.47.2 and Dart 3.13.2 on September 22, 2026. The core issue is that vrm_dart only handles the VRM extension schema, while VRM 1.0 stores metadata under a different extension, VRMC_vrm, with renamed fields and a different thumbnail reference. Since VRM 1.0 files are now common following VRoid Studio's v1.20.0 release in March 2023, and vrm_dart has had no commits since October 2021, the library is effectively outdated. The author's alternative parser uses only dart:convert and dart:typed_data to read GLB chunk structure directly, successfully extracting model name, author, license, and thumbnail from both VRM versions in 101 lines of code.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in