hetu_script_flutter 0.1.0+2 copy "hetu_script_flutter: ^0.1.0+2" to clipboard
hetu_script_flutter: ^0.1.0+2 copied to clipboard

Extension for Hetu Script. Makes it easier to use Hetu Script in Flutter apps.

Hetu Script for Flutter #

This is an extension for hetu_script.

Getting started #

To load a script file from assets, add the script file's path into your pubspec.yaml like other assets.

The default folder is 'scripts/', directly under your project root.

assets:
  - scripts/main.ht

Then those script will be pre-loaded by the new init method on Hetu class: [initFlutter].

You don't need to use old [init]. Also note that this is an async function.

You can load a asset script file by [evalFile] method:

final hetu = Hetu();
await hetu.initFlutter();

final result = hetu.evalFile('main.ht', invokeFunc: 'main');
2
likes
150
points
3
downloads

Publisher

verified publisherhetu.dev

Weekly Downloads

Extension for Hetu Script. Makes it easier to use Hetu Script in Flutter apps.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, hetu_script, path

More

Packages that depend on hetu_script_flutter