Make TextValueRun visible to clients and NestedArtboards too.

Makes this easier:
```
class MyController extends RiveAnimationController<Artboard> {
  @override
  bool init(Artboard core) {
    var run = core.component<TextValueRun>("blah");
    run?.text = "HEEEEEY";

    return super.init(core);
  }

  @override
  void apply(Artboard? core, double elapsedSeconds) {}
}
```

Also exposes NestedArtboard which lots of users have requested.

Diffs=
fa36ec055 Make TextValueRun visible to clients and NestedArtboards too. (#5657)

Co-authored-by: Luigi Rosso <luigi-rosso@users.noreply.github.com>
This commit is contained in:
luigi-rosso
2023-07-24 21:27:49 +00:00
parent db112aa589
commit 9e7a831df6
2 changed files with 3 additions and 1 deletions

View File

@ -14,6 +14,7 @@ export 'package:rive/src/rive_core/animation/state_machine.dart';
export 'package:rive/src/rive_core/artboard.dart';
export 'package:rive/src/rive_core/assets/font_asset.dart';
export 'package:rive/src/rive_core/assets/image_asset.dart';
export 'package:rive/src/rive_core/nested_artboard.dart';
export 'package:rive/src/rive_core/rive_animation_controller.dart';
export 'package:rive/src/rive_core/runtime/exceptions/rive_format_error_exception.dart';
export 'package:rive/src/rive_core/runtime/runtime_header.dart'
@ -24,6 +25,7 @@ export 'package:rive/src/rive_core/shapes/paint/radial_gradient.dart';
export 'package:rive/src/rive_core/shapes/paint/solid_color.dart';
export 'package:rive/src/rive_core/shapes/paint/stroke.dart';
export 'package:rive/src/rive_core/shapes/shape.dart';
export 'package:rive/src/rive_core/text/text_value_run.dart';
export 'package:rive/src/rive_file.dart';
export 'package:rive/src/rive_scene.dart';
export 'package:rive/src/runtime_artboard.dart';