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

57 lines
1.8 KiB
Dart

import 'package:flutter/material.dart';
/// create by 张风捷特烈 on 2020/4/27
/// contact me by email 1981462002@qq.com
/// 说明:
// {
// "widgetId": 22,
// "priority": 1,
// "name": "该组件的基本表现如下",
// "subtitle": "【currentAccountPicture】: 上组件 【Widget】\n"
// "【accountName】: 中组件 【Widget】\n"
// "【accountEmail】: 下组件 【Widget】\n"
// "【decoration】: 装饰 【Decoration】",
// }
class CustomUAGHP extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
width: MediaQuery.of(context).size.width / 3 * 2,
child: UserAccountsDrawerHeader(
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"),
),
),
decoration: BoxDecoration(
image: DecorationImage(image: AssetImage("assets/images/caver.webp")),
),
),
);
}
}