build method
Override this method to build widgets that depend on the state of the listenable (e.g., the current value of the animation).
Implementation
@override
Widget build(BuildContext context) {
return Container(
constraints: BoxConstraints.expand(),
child: Listener(
onPointerHover: _pointerLocation,
child: Stack(children: [
Container(
constraints: BoxConstraints.expand(),
child: CustomPaint(
painter: CanvasNestPainter(
nestConfig, nodeInfoList, screenSize, _cursor),
),
),
Center(
child: Container(
height: screenSize.height * 0.9,
width: screenSize.width * 0.9,
// color: Colors.grey,
child: MouseRegion(
onEnter: (PointerEnterEvent details) {
_cursor.hovering = true;
},
onExit: (PointerExitEvent details) {
_cursor.hovering = false;
},
),
),
),
]),
),
);
}