Files
2021-04-03 19:41:09 +08:00

70 lines
2.1 KiB
Dart

import 'package:flutter/material.dart';
/// create by 张风捷特烈 on 2020/4/27
/// contact me by email 1981462002@qq.com
/// 说明:
// {
// "widgetId": 22,
// "priority": 2,
// "name": "右上角和底部",
// "subtitle": "【otherAccountsPictures】: 右上组件 【List<Widget>】\n"
// "【onDetailsPressed】: 右下角点击事件 【Function()】\n"
// "【arrowColor】: 右下角按钮颜色 【Color】\n"
// "【margin】: 外边距 【EdgeInsetsGeometry】",
// }
class ProUAGHP extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
width: MediaQuery.of(context).size.width / 3 * 2,
child: UserAccountsDrawerHeader(
margin: EdgeInsets.all(10),
accountName: Container(
padding: const EdgeInsets.all(8.0),
child: Text(
"张风捷特烈",
style:
TextStyle(color: Colors.orangeAccent, fontSize: 22,
shadows: [
Shadow(
color: Colors.black,
offset: Offset(.5, .5),
blurRadius: 2),
]),
),
),
accountEmail: Padding(
padding: const EdgeInsets.all(8.0),
child: Text("1981462002@qq.com",
style: TextStyle(
color: Colors.white, fontSize: 14,
shadows: [
Shadow(
color: Colors.orangeAccent,
offset: Offset(.5, .5),
blurRadius: 2),
])),
),
currentAccountPicture: Container(
padding: const EdgeInsets.all(15.0),
child: CircleAvatar(
backgroundImage: AssetImage("assets/images/icon_head.webp"),
),
),
otherAccountsPictures: <Widget>[
FlutterLogo(textColor: Colors.green),
],
onDetailsPressed: () {
},
arrowColor: Colors.white,
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage("assets/images/caver.webp")),
),
),
);
}
}