问题 For some reason, the Stack widget does not show the Container with the CustomPaint . However if removed from Stack , it works fine. What am I missing here? class _DemoNavBar extends State<DemoNavBar> { @override Widget build(BuildContext context) { // TODO: implement build return MaterialApp( home: Stack( children: <Widget>[ Container(child: CustomPaint(painter: CurvePainter())) ], ) ); } } class CurvePainter extends CustomPainter { @override void paint(Canvas canvas, Size size) { var paint =