string_res 1.2.0 copy "string_res: ^1.2.0" to clipboard
string_res: ^1.2.0 copied to clipboard

outdated

A generator of strings constants from json

A Dart Builder for creating a class with String constants from a JSON file.

Usage #

JSON file MUST be named strings.json and live somewhere within the assets top-level folder of your Flutter app project.

The JSON file is expected to have a single top-level object whose properties will be used in the output.

The output will create a Class named SR in lib/strings.dart which will contain a static String constant for every property found in the top-level JSON object.

For Flutter run using standard command: flutter packages pub run build_runner build

or with the new hot-reload code-gen builder support

Features and bugs #

Please file feature requests and bugs at the issue tracker.