123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- import 'package:flutter/material.dart';
- import 'package:flutter_screenutil/flutter_screenutil.dart';
-
- class UserInfo extends StatelessWidget {
- const UserInfo({Key? key}) : super(key: key);
-
- @override
- Widget build(BuildContext context) {
- return Container(
- margin: EdgeInsets.only(top: 20.0, bottom: 0.0),
-
- alignment: Alignment.center,
- height: 173.w,
- width: 345.w,
- decoration: BoxDecoration(
- image: const DecorationImage(
- image: AssetImage("images/mineBack.png"),
- fit: BoxFit.cover,
- ),
- borderRadius: BorderRadius.circular(10),
- ),
- child: Stack(
- fit: StackFit.expand,
- children: [
- Positioned(
- top: 0,
- right: 0,
- child: Container(
- alignment: Alignment.center,
- height: 24.w,
- width: 93.w,
- decoration: const BoxDecoration(
- borderRadius: BorderRadius.only(
- bottomLeft: Radius.circular(20),
- topRight: Radius.circular(20)),
- color: Color(0x30000000),
- ),
- child: GestureDetector(
- child: const Text(
- '修改个人信息',
- style: TextStyle(color: Colors.white,fontSize: 14),
- ),
- onTap: () {
- print('修改个人信息');
- },
- )),
- ),
- Row(
- children: [
- Column(
- mainAxisAlignment: MainAxisAlignment.center,
- children: [
- Container(
- decoration: BoxDecoration(
- shape: BoxShape.circle,
- border: Border.all(
- color: Colors.white,
- width: 2,
- ),
- ),
- margin: EdgeInsets.fromLTRB(30, 0, 15, 0),
- alignment: Alignment.center,
- child: Image.asset(
- "images/userMoren.png",
- width: 63.w,
- ),
- ),
- ],
- ),
- Container(
- child: Column(
- mainAxisAlignment: MainAxisAlignment.center,
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Container(
- margin: EdgeInsets.fromLTRB(0, 0, 0, 10),
- child: Text(
- '符西西',
- style: TextStyle(
- color: Colors.white,
- fontSize: 17,
- ),
- ),
- ),
- Container(
- margin: EdgeInsets.fromLTRB(0, 10, 0, 0),
- child: Text(
- '17775000245',
- style: TextStyle(
- color: Colors.white,
- fontSize: 17,
- ),
- ),
- ),
- // const Text(
- // '点击登陆',
- // style: TextStyle(
- // color: Colors.white,
- // fontSize: 17,
- // ),
- // ),
- ],
- ),
- ),
- ],
- ),
- ],
- ),
- );
- }
- }
|