build method
Widget
build(
- BuildContext context,
- AppState appState,
- PageState pageState,
- AppStylesState stylesState,
- 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,
),
),
),
),
),
),
);
}