当我点击抽屉布局菜单时,时间抽屉不会执行任何操作。代码示例如下:
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'))
],
),
),
)
);
}
}