增加广告组件,个人中心
This commit is contained in:
58
lib/pages/user/widget/user_info.dart
Normal file
58
lib/pages/user/widget/user_info.dart
Normal file
@@ -0,0 +1,58 @@
|
||||
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,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user