2

I am creating a level editor in Dart for my cocos2d-x game and I have to parse animations stored plist files. Has anyone created or found a library for parsing plists in Dart? If not, I guess I will have to write my own.

Elviss Strazdins
  • 1,404
  • 14
  • 30

2 Answers2

1

I am not aware of any plist parser, but you could convert the plist to JSON (https://stackoverflow.com/a/10991695/1919627) then parse using the dart:convert library:

Map parsedData = JSON.decode(mapAsJson);
Community
  • 1
  • 1
ringstaff
  • 2,331
  • 1
  • 16
  • 25
0

Eight years later — a very useful package called plist_parser is available on pub.dev. It is based on the xml package to parse plist data from strings, files or binaries.

mrcendre
  • 1,053
  • 2
  • 15
  • 28