You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

111 lines
3.0 KiB

import 'package:dating_touchme_app/components/page_appbar.dart';
import 'package:dating_touchme_app/generated/assets.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
class BlacklistPage extends StatefulWidget {
const BlacklistPage({super.key});
@override
State<BlacklistPage> createState() => _BlacklistPageState();
}
class _BlacklistPageState extends State<BlacklistPage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: PageAppbar(title: "黑名单"),
body: SingleChildScrollView(
child: Container(
padding: EdgeInsets.symmetric(
vertical: 20.w,
horizontal: 15.w
),
child: Column(
children: [
BlackItem(),
BlackItem(),
BlackItem(),
BlackItem(),
BlackItem(),
BlackItem(),
],
),
),
),
);
}
}
class BlackItem extends StatefulWidget {
const BlackItem({super.key});
@override
State<BlackItem> createState() => _BlackItemState();
}
class _BlackItemState extends State<BlackItem> {
@override
Widget build(BuildContext context) {
return Container(
margin: EdgeInsets.only(
bottom: 20.w
),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Row(
children: [
ClipRRect(
borderRadius: BorderRadius.all(Radius.circular(40.w)),
child: Image.asset(
Assets.imagesUserAvatar,
width: 40.w,
height: 40.w,
),
),
SizedBox(width: 12.w,),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
"法大师傅",
style: TextStyle(
fontSize: 13.w,
fontWeight: FontWeight.w500
),
),
Text(
"拉黑时间:11月7日",
style: TextStyle(
fontSize: 11.w,
color: const Color.fromRGBO(144, 144, 144, 1)
),
)
],
)
],
),
Container(
width: 70.w,
height: 25.w,
decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(25.w)),
border: Border.all(width: 1, color: const Color.fromRGBO(51, 51, 51, 1))
),
child: Center(
child: Text(
"拆除",
style: TextStyle(
fontSize: 13.w,
fontWeight: FontWeight.w500
),
),
),
)
],
),
);
}
}