꿈꾸는 시스템 디자이너

Flutter Example - ListView | basic 본문

Tutorial/Flutter with App

Flutter Example - ListView | basic

독행소년 2019. 9. 27. 14:29
import 'package:flutter/material.dart';

class ListViewBasic extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text("ListView Demo - Basic")),
      body: ListView(
        children: <Widget>[
          Text("First Item - Text"),
          Container(
            decoration: BoxDecoration(color: Colors.orange),
            child: Text("Second item - Text in Container"),
          ),
          ListTile(
            leading: Icon(Icons.list),
            title: Text("3rd item"),
            subtitle: Text("ListTile"),
          ),
          RaisedButton(
            child: Text("4th item - RaisedButton"),
          ),
          Card(
            child: Text("5th item - Text in Card"),
          ),
          Card(
            child: Text("5th item - Text in Card"),
          ),
          Text(
              "Various kinds of widgets can be registered as items of ListView Widget"),
        ],
      ),
    );
  }
}

 

 

▶ Go to Table of Contents | 강의 목차로 이동


※ This example is also available in the Flutter Code Examples app. | 본 예제는 Flutter Code Examples 앱에서도 제공됩니다.

 

Flutter Code Examples - Google Play 앱

Are you a beginner at Flutter? Check out the various features of Flutter through the demo. Source code for all demos is also provided.

play.google.com

Comments