new Offstage( offstage: true, //这里控制 child: Container(color: Colors.blue,height: 100.0,), ), 转载于:https://www.cnblogs.com/zhujiabin/p/10131181.html