string_res 1.2.1

Dart native
Flutter Android iOS

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

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.

1
likes
100
pub points
0%
popularity

Publisher

manichord.com

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD (LICENSE)

Dependencies

build, build_config, dart_style, glob, meta, path

More

Packages that depend on string_res