mark-nicepants / figma2flutter

Converts design token json files to flutter
Apache License 2.0
17 stars 16 forks source link

Throw exception if theme refers to token set that is not in metadata #28

Closed freemansoft closed 1 month ago

freemansoft commented 2 months ago

Got a Null can't be assigned to a Map<String, dynamic> kind of error if the theme in $theme refers to an entry that is not in $metadata.

Throws an exception that describes the missing entry.

Also some missing trailing commas were added

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 98.49%. Comparing base (cee9aeb) to head (8045ab0).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #28 +/- ## ========================================== + Coverage 98.48% 98.49% +0.01% ========================================== Files 31 32 +1 Lines 860 866 +6 ========================================== + Hits 847 853 +6 Misses 13 13 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.