Files
gl_dao/lib/pages/user/widget/user_info.dart
2022-05-27 17:52:17 +08:00

59 lines
1.7 KiB
Dart

import 'package:flutter/material.dart';
class UserInfo extends StatefulWidget {
const UserInfo({Key? key}) : super(key: key);
@override
State<UserInfo> createState() => _UserInfoState();
}
class _UserInfoState extends State<UserInfo> {
@override
Widget build(BuildContext context) {
return Container(
width: double.infinity,
padding: EdgeInsets.fromLTRB(
20.0,
MediaQuery.of(context).padding.top,
20.0,
50.0,
),
decoration: const BoxDecoration(
image: DecorationImage(
image: AssetImage('assets/login/auth_bg.png'),
fit: BoxFit.cover,
),
),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
const SizedBox(height: 40.0),
ClipOval(
child: Image.network(
'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic%2F78%2Fab%2Ffc%2F78abfc26e04035fc8fd68aaee233c5b7.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656234411&t=4544b17883f935447981f761b1e2a941',
height: 65.0,
width: 65.0,
),
),
const SizedBox(height: 15.0),
const Text(
'唐明明',
style: TextStyle(
fontSize: 20.0,
color: Colors.white,
fontWeight: FontWeight.bold,
),
),
const SizedBox(height: 5.0),
const Text(
'NTF编号00001',
style: TextStyle(
color: Colors.white,
),
),
],
),
);
}
}