drawer: Drawer( child: Column( children: <Widget>[ Row( children: <Widget>[ Expanded( child: UserAccountsDrawerHeader( accountName: Text('姚勇超'), accountEmail: Text('yaoyongchao3g@163.com'), currentAccountPicture: CircleAvatar( backgroundImage: NetworkImage('https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=745940581,1373683328&fm=26&gp=0.jpg'), ), decoration: BoxDecoration( // color: Colors.yellow, image: DecorationImage( image: NetworkImage('https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1551457319,4213469126&fm=26&gp=0.jpg'), fit: BoxFit.cover, ), ), otherAccountsPictures: <Widget>[ Image.network('https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=359815789,1305508489&fm=26&gp=0.jpg'), Image.network('https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=359815789,1305508489&fm=26&gp=0.jpg') ], ), /*child: DrawerHeader( child: Text('你好Flutter'), decoration: BoxDecoration( // color: Colors.yellow, image: DecorationImage( image: NetworkImage(''), fit: BoxFit.cover, ), ), ),*/ ) ], ), ListTile( leading: CircleAvatar( child: Icon(Icons.home), ), title: Text('我的空间'), ), Divider(), ListTile( leading: CircleAvatar( child: Icon(Icons.people), ), title: Text('用户中心'), ), Divider(), ListTile( leading: CircleAvatar( child: Icon(Icons.settings), ), title: Text('设置中心'), ), Divider(), ], ), ),
Flutter侧边栏
最新推荐文章于 2024-03-20 17:29:32 发布