Flutter를 사용하여 내 스크롤 데모 응용 프로그램의 릴리스 빌드를 만들었습니다. 왜 내 애플 리케이션의 목록보기 스크롤이 펄럭 갤러리 애플 리케이션처럼 부드럽지 않은지 궁금해. 나는 LG G5를이 테스트에 사용했다. 여기 코드입니다 :내 플러터 응용 프로그램의 목록보기가 플러터 갤러리 응용 프로그램처럼 부드럽지 않은 이유는 무엇입니까?
편집합니다.
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를 구현 했습니까? 몇 가지 코드를 공유해 주시겠습니까? –