Fluter抽屉布局在flutter version = v0.2.3上无法正常工作

时间:2018-04-10 15:03:54

标签: dart flutter

当我点击抽屉布局菜单时,时间抽屉不会执行任何操作。代码示例如下:

import 'package:flutter/material.dart';
void main() => runApp(new MyApp());

class MyApp extends StatelessWidget{
 @override
 Widget build(BuildContext context){
 return new MaterialApp(
  title : 'msc',
  home : new Scaffold(
    appBar : new AppBar(
      title: new Text('Msc')
    ),
    drawer: new Drawer(
      child: new ListView(
        children: <Widget>[
          new UserAccountsDrawerHeader(accountName: new Text('Msc'), 
accountEmail: new Text('india@msc.com'))
        ],
      ),
    ),
  )
);
}
}

0 个答案:

没有答案