【问题标题】:The name parameter 'Child' isn't defined for BottomAppBar() widget没有为 BottomAppBar() 小部件定义名称参数 'Child'
【发布时间】:2019-08-13 03:20:43
【问题描述】:

我目前正在尝试为我的颤振构建一个底部应用栏。我是 BottomAppBar 小部件的新手,由于我在编写代码时同时参考了文档,所以我偶然发现了这个错误。

下图显示错误

![BottomAppBar]: https://ibb.co/Bn3hKFN

【问题讨论】:

  • 请在此处粘贴代码,不要作为图像。

标签: flutter


【解决方案1】:

问题是您的类名与小部件名称相同BottomAppBar

你需要把类名改成

class BottomAppBarImpl extends StatelessWidget{

/*

/// Put Your code Here it starts working fine

/*

} 

【讨论】:

  • 如果它解决了问题,请接受并支持答案
猜你喜欢
  • 2020-11-02
  • 2021-05-13
  • 2021-06-15
  • 1970-01-01
  • 2021-05-21
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多