zoukankan      html  css  js  c++  java
  • 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'),
                ),
              ],
            ),
          ),
        );
      }
    }

    如图

  • 相关阅读:
    Vue 组件的基础介绍
    Java web中的路径问题
    个人网站的使用路线
    EL表达式
    jsp
    状态管理和作用域对象
    servlet
    jsp session获取问题
    关于jsp页面中接收二维数组
    个人网站开发(二)
  • 原文地址:https://www.cnblogs.com/sea-stream/p/12154417.html
Copyright © 2011-2022 走看看