build method

  1. @override
Widget build(
  1. BuildContext context,
  2. AppState appState,
  3. PageState pageState,
  4. AppStylesState stylesState,
  5. dynamic nodeState,
)
override

Implementation

@override
Widget build(
  BuildContext context,
  AppState appState,
  PageState pageState,
  AppStylesState stylesState,
  WidgetState nodeState,
) {
  return IgnorePointer(
    ignoring: !appState.forPlay,
    child: GestureDetector(
      onTap: () {
        onTap.call();
      },
      onDoubleTap: () {
        onDoubleTap.call();
      },
      onLongPress: () {
        onLongPress.call();
      },
      child: SizedBox(
        width: width.get(
          context: context,
          isWidth: true,
        ),
        height: height.get(
          context: context,
          isWidth: false,
        ),
        child: DecoratedBox(
          decoration: ThetaBoxDecoration.get(
            context: context,
            fill: fill,
            borderRadius: borderRadius,
            loop: nodeState.loop,
          ),
          child: Center(
            child: SizedBox(
              width: double.maxFinite,
              child: TextBuilder(
                nodeState: nodeState,
                textStyle: textStyle,
                value: value,
              ),
            ),
          ),
        ),
      ),
    ),
  );
}