flutter_in_action_2nd icon indicating copy to clipboard operation
flutter_in_action_2nd copied to clipboard

2.2.4 StatelessWidget 代码疑惑

Open taichushouwang opened this issue 3 years ago • 0 comments

你好,我在学习的过程中,发现在2.2.4 StatelessWidget中,显示Echo这个widget,书中的代码是

 Widget build(BuildContext context) {
  return Echo(text: "hello world");
}

但是这样子不是就没有了"AppBar"这些元素了,是不是缺了哪些上下文?

taichushouwang avatar Nov 18 '21 09:11 taichushouwang