flutter 基本List

时间:2020-01-06 00:26:25   收藏:0   阅读:124

 

import package:flutter/material.dart;

void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    final title = Basic List;
    final tutle2="hahhahaah";

    return new MaterialApp(
      title: tutle2,
      home: new Scaffold(
        appBar: new AppBar(
          title: new Text(title),
        ),
        body: new ListView(
          children: <Widget>[
            new ListTile(
              leading: new Icon(Icons.map),
              title: new Text(Map),
            ),
            new ListTile(
              leading: new Icon(Icons.photo),
              title: new Text(Album),
            ),
            new ListTile(
              leading: new Icon(Icons.phone),
              title: new Text(Phone),
            ),
            new ListTile(
              leading: new Icon(Icons.map),
              title: new Text(Map),
            ),
            new ListTile(
              leading: new Icon(Icons.map),
              title: new Text(Map),
            ),
            new ListTile(
              leading: new Icon(Icons.map),
              title: new Text(Map),
            ),
            new ListTile(
              leading: new Icon(Icons.map),
              title: new Text(Map),
            ),
            new ListTile(
              leading: new Icon(Icons.map),
              title: new Text(Map),
            ),
            new ListTile(
              leading: new Icon(Icons.map),
              title: new Text(Map),
            ),
            new ListTile(
              leading: new Icon(Icons.map),
              title: new Text(Map),
            ),
            new ListTile(
              leading: new Icon(Icons.map),
              title: new Text(Map),
            ),
            new ListTile(
              leading: new Icon(Icons.map),
              title: new Text(Map),
            ),
          ],
        ),
      ),
    );
  }
}

如图

技术分享图片

 

 

 

 

 

原文:https://www.cnblogs.com/sea-stream/p/12154417.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!