• flutter 基本List


    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'),
                ),
              ],
            ),
          ),
        );
      }
    }

    如图

  • 相关阅读:
    期末实训学习认识SSH
    Hibernate 的认识
    action和domain的不同总结
    学习使用action属性来接受参数
    实现action的统配
    struts2学习
    路径问题--笔记
    学习C层
    innovus add_ndr rule
    innovus clock tree instance ccl cdb cwb等 名字命名含义
  • 原文地址:https://www.cnblogs.com/sea-stream/p/12154417.html
Copyright © 2020-2023  润新知