flutter实现一个列表页面

效果
在这里插入图片描述

import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        title: 'flutter Demo',
        home: Scaffold(
            appBar: new AppBar(title: new Text('ListView Widget')),
            body: new ListView(
              children: <Widget>[
                new ListTile(
                    leading: new Icon(Icons.perm_camera_mic),
                    title: new Text('perm_camera_mic')),
                new ListTile(
                    leading: new Icon(Icons.add_call),
                    title: new Text('add_call')),
                new ListTile(
                    leading: new Icon(Icons.add_shopping_cart),
                    title: new Text('add_shopping_cart')),
              ],
            )));
  }
}

发布了96 篇原创文章 · 获赞 15 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/weixin_35958891/article/details/103611435