-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
没有appbar的情况下显示异常 #35
Comments
appBar: PreferredSize( |
你好,我在一个不需要AppBar的页面上使用,用了你下面回复的方法设置了preferredSize,但是就会出现header点击不了的问题。这个情况你有碰到吗? |
0_0 好吧,似乎Scaffold并不是必须的,去掉就正常了。 |
显示异常的情况是需要很高的高度才会显示gridview的内容
// var gridView = GridView.count(
// physics: NeverScrollableScrollPhysics(),
// crossAxisCount: _menuCount,
// childAspectRatio: (_screenWidth / _menuCount) / widget.height,
// children: widget.items.map((item) {
// return _menu(item);
// }).toList(),
// );
var gridView = ListView(
scrollDirection: Axis.horizontal,
physics: NeverScrollableScrollPhysics(),
children: widget.items.map((item) {
return _menu(item);
}).toList(),
);
然后改成这样才会显示正常
The text was updated successfully, but these errors were encountered: