Files
2022-03-26 16:41:34 +08:00

70 lines
2.2 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 {
const ProUAGHP({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return SizedBox(
width: MediaQuery.of(context).size.width / 3 * 2,
child: UserAccountsDrawerHeader(
margin: const EdgeInsets.all(10),
accountName: Container(
padding: const EdgeInsets.all(8.0),
child: const Text(
"张风捷特烈",
style:
TextStyle(color: Colors.orangeAccent, fontSize: 22, shadows: [
Shadow(
color: Colors.black,
offset: Offset(.5, .5),
blurRadius: 2,
),
]),
),
),
accountEmail: const Padding(
padding: 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: const CircleAvatar(
backgroundImage: AssetImage("assets/images/icon_head.webp"),
),
),
otherAccountsPictures: const [
FlutterLogo(textColor: Colors.green),
],
onDetailsPressed: () {
},
arrowColor: Colors.white,
decoration: const BoxDecoration(
image: DecorationImage(image: AssetImage("assets/images/caver.webp")),
),
),
);
}
}