Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
Tags
- Flutter 강좌
- Cached Image
- Column Widget
- 반석천
- InkWell
- Hello World
- node.js
- listview
- CrossAxisAlignment
- ListTile
- Scaffold
- Flutter 예제
- MainAxisAlignment
- Flutter 앱 배포
- AppBar
- Flutter Example
- Flutter Tutorial
- Snackbar
- Networking
- ListView.builder
- Row
- FutureBuilder
- navigator
- flutter
- Row Widget
- WillPopScope
- sqlite
- Image.network
- HTTP
- Load Image
Archives
- Today
- Total
꿈꾸는 시스템 디자이너
Flutter Example - ListView | Create ListView with builder 본문
Tutorial/Flutter with App
Flutter Example - ListView | Create ListView with builder
독행소년 2019. 9. 27. 14:32import 'package:flutter/material.dart';
class ListViewWidthBuilder extends StatelessWidget {
List<String> items;
ListViewWidthBuilder() {
items = List<String>.generate(100, (index) {
return "Item - $index";
});
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text("ListView with builder")),
body: ListView.builder(itemBuilder: (context,index){
String item = items[index];
return ListTile(
title: Text(item)
);
})
);
}
}
▶ Go to Table of Contents | 강의 목차로 이동
※ This example is also available in the Flutter Code Examples app. | 본 예제는 Flutter Code Examples 앱에서도 제공됩니다.
'Tutorial > Flutter with App' 카테고리의 다른 글
Flutter Example - ListView | Horizontal ListView (0) | 2019.09.27 |
---|---|
Flutter Example - ListView | ListView with diffrent types of items (0) | 2019.09.27 |
Flutter Example - ListView | basic (0) | 2019.09.27 |
Flutter Example - Screen Management | Kept On Screen (0) | 2019.09.27 |
Flutter Example - WillPopScope | Handel back button pressed (0) | 2019.09.27 |
Comments