|
|
@ -22,7 +22,7 @@ class ActivityCard extends StatelessWidget {
|
|
|
|
|
|
|
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return ConstrainedBox(
|
|
|
|
return ConstrainedBox(
|
|
|
|
constraints: BoxConstraints(maxHeight: home! ? 480.w : 540.w),
|
|
|
|
constraints: BoxConstraints(maxHeight: home! ? 450.w : 540.w),
|
|
|
|
child: MaterialButton(
|
|
|
|
child: MaterialButton(
|
|
|
|
clipBehavior: Clip.antiAlias,
|
|
|
|
clipBehavior: Clip.antiAlias,
|
|
|
|
color: Colors.white,
|
|
|
|
color: Colors.white,
|
|
|
@ -46,7 +46,7 @@ class ActivityCard extends StatelessWidget {
|
|
|
|
child: BeeImageNetwork(
|
|
|
|
child: BeeImageNetwork(
|
|
|
|
imgs: model!.imgList ?? [],
|
|
|
|
imgs: model!.imgList ?? [],
|
|
|
|
width: double.infinity,
|
|
|
|
width: double.infinity,
|
|
|
|
height: home! ? 240.w : 340.w,
|
|
|
|
height: home! ? 250.w : 340.w,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -78,44 +78,54 @@ class ActivityCard extends StatelessWidget {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
24.hb,
|
|
|
|
24.hb,
|
|
|
|
Row(
|
|
|
|
Padding(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 32.w),
|
|
|
|
children: [
|
|
|
|
child: Row(
|
|
|
|
Container(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
constraints: BoxConstraints(maxWidth: 340.w),
|
|
|
|
children: [
|
|
|
|
child: Text(
|
|
|
|
Container(
|
|
|
|
model == null ? '' : model!.title,
|
|
|
|
constraints: BoxConstraints(maxWidth: 340.w),
|
|
|
|
maxLines: 2,
|
|
|
|
child: Text(
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
model == null ? '' : model!.title,
|
|
|
|
style: TextStyle(
|
|
|
|
maxLines: 2,
|
|
|
|
color: Color(0xD9000000),
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
fontSize: 28.sp,
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
color: Color(0xD9000000),
|
|
|
|
|
|
|
|
fontSize: 28.sp,
|
|
|
|
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
Spacer(),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
Spacer(),
|
|
|
|
[
|
|
|
|
|
|
|
|
Flexible(
|
|
|
|
Padding(
|
|
|
|
child: AvatarsParticipate(
|
|
|
|
padding: home!?EdgeInsets.only(left: 32.w,right: 32.w,): EdgeInsets.only(left: 32.w,right: 32.w,bottom: 32.w),
|
|
|
|
avatars:
|
|
|
|
child: Row(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
Flexible(
|
|
|
|
|
|
|
|
child: AvatarsParticipate(
|
|
|
|
|
|
|
|
avatars:
|
|
|
|
(model?.avatarImgList?.map((e) => e.url).toList() ?? []),
|
|
|
|
(model?.avatarImgList?.map((e) => e.url).toList() ?? []),
|
|
|
|
pNum: model?.registrationNum ?? 0,
|
|
|
|
pNum: model?.registrationNum ?? 0,
|
|
|
|
hasIcon: false,
|
|
|
|
hasIcon: false,
|
|
|
|
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
// Spacer(),
|
|
|
|
|
|
|
|
Offstage(
|
|
|
|
|
|
|
|
offstage: ActivityFunc.dateCheck(model!.end) == '已结束',
|
|
|
|
|
|
|
|
child: ActivityFunc.dateCheck(model!.end)
|
|
|
|
|
|
|
|
.text
|
|
|
|
|
|
|
|
.size(24.sp)
|
|
|
|
|
|
|
|
.black
|
|
|
|
|
|
|
|
.make()),
|
|
|
|
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
// Spacer(),
|
|
|
|
)
|
|
|
|
Offstage(
|
|
|
|
|
|
|
|
offstage: ActivityFunc.dateCheck(model!.end) == '已结束',
|
|
|
|
|
|
|
|
child: ActivityFunc.dateCheck(model!.end)
|
|
|
|
|
|
|
|
.text
|
|
|
|
|
|
|
|
.size(24.sp)
|
|
|
|
|
|
|
|
.black
|
|
|
|
|
|
|
|
.make()),
|
|
|
|
|
|
|
|
].row(),
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|