【bug记录】Scaffold.of() called with a context that does not contain a Scaffold. 万表前端格仔衫 2020-11-13 432 阅读1分钟 Scaffold.of() called with a context that does not contain a Scaffold. 出现场景 一个使用了的Provider的页面,点击抽屉时候出现了以上错误,经查阅加入Builder即可。 主要原因:build方法如果嵌套build后,接收不到外层的context参数。