我使用Flutter创建了我的滚动演示应用程序的发布版本。我不知道为什么我的应用程序的ListView滚动不如颤动画廊应用程序光滑。我使用LG G5进行这项测试。为什么我的扑翼应用程序的listview滚动不如扑动画廊应用程序光滑?
编辑: 这里是代码。
class ListViewSample extends StatelessWidget {
@override
Widget build(BuildContext buidContext) {
return new Container(
child: new Center(
child: new ListView(
children: createListTiles(),
),
)
);
}
List<Widget> createListTiles() {
List<Widget> tiles = <Widget>[];
for(int i = 0; i < 40; i++) {
int count = i + 1;
tiles.add(
new ListTile(
leading: new CircleAvatar(
child: new Text("$count"),
backgroundColor: Colors.lightGreen[700],
),
title: new Text("Title number $count"),
subtitle: new Text("This is the subtitle number $count"),
)
);
}
return tiles;
}
有人也有同样的感受吗?
谢谢!
你是如何实现你的ListView的?你能分享一些代码吗? –