|
|
@ -1,3 +1,4 @@
|
|
|
|
|
|
|
|
import 'package:akuCommunity/model/common/img_model.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
|
|
|
@ -122,8 +123,12 @@ class _VotingDetailPageState extends State<VotingDetailPage> {
|
|
|
|
child: ClipRRect(
|
|
|
|
child: ClipRRect(
|
|
|
|
borderRadius: BorderRadius.circular(4.w),
|
|
|
|
borderRadius: BorderRadius.circular(4.w),
|
|
|
|
child: FadeInImage.assetNetwork(
|
|
|
|
child: FadeInImage.assetNetwork(
|
|
|
|
placeholder: R.ASSETS_IMAGES_LOGO_PNG,
|
|
|
|
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
|
|
|
|
image: API.image(model.imgUrls.first.url)),
|
|
|
|
image: API.image(
|
|
|
|
|
|
|
|
ImgModel.first(model.imgUrls),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
30.w.widthBox,
|
|
|
|
30.w.widthBox,
|
|
|
@ -213,15 +218,11 @@ class _VotingDetailPageState extends State<VotingDetailPage> {
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
_model.title.text.black.size(32.sp).bold.maxLines(2).make(),
|
|
|
|
_model.title.text.black.size(32.sp).bold.maxLines(2).make(),
|
|
|
|
44.w.heightBox,
|
|
|
|
44.w.heightBox,
|
|
|
|
SizedBox(
|
|
|
|
ClipRRect(
|
|
|
|
width: double.infinity,
|
|
|
|
|
|
|
|
height: 228.w,
|
|
|
|
|
|
|
|
child: ClipRRect(
|
|
|
|
|
|
|
|
borderRadius: BorderRadius.circular(8.w),
|
|
|
|
borderRadius: BorderRadius.circular(8.w),
|
|
|
|
child: FadeInImage.assetNetwork(
|
|
|
|
child: FadeInImage.assetNetwork(
|
|
|
|
placeholder: R.ASSETS_IMAGES_LOGO_PNG,
|
|
|
|
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
|
|
|
|
image: API.image(_model.imgUrls.first.url),
|
|
|
|
image: API.image(_model.firstImage),
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
44.w.heightBox,
|
|
|
|
44.w.heightBox,
|
|
|
|