flutter实现一个列表页面

效果
flutter实现一个列表页面_第1张图片

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

你可能感兴趣的:(flutter)