|
|
@@ -91,37 +91,46 @@ class _CustomShareContentContainerWidgetState extends State<_CustomShareContentC |
|
|
|
topLeft: Radius.circular(ParseUtil.stringParseDouble(model?.topLeftRadius)), |
|
|
|
topRight: Radius.circular(ParseUtil.stringParseDouble(model?.topRightRadius)), |
|
|
|
)), |
|
|
|
child: Stack( |
|
|
|
children: [ |
|
|
|
CachedNetworkImage(imageUrl: model?.bgImageUrl ?? '', width: double.infinity), |
|
|
|
Padding( |
|
|
|
padding: const EdgeInsets.only(left: 12.5, right: 12.5, top: 12.5, bottom: 14), |
|
|
|
child: Column( |
|
|
|
child: Container( |
|
|
|
width: double.infinity, |
|
|
|
padding: const EdgeInsets.only(left: 12, right: 12, bottom: 14), |
|
|
|
decoration: BoxDecoration( |
|
|
|
color: HexColor.fromHex(model?.cardBgColor), |
|
|
|
border: Border.all(color: HexColor.fromHex(model?.cardBorderColor), width: 1), |
|
|
|
borderRadius: BorderRadius.all(Radius.circular(8)) |
|
|
|
), |
|
|
|
child: Column( |
|
|
|
children: [ |
|
|
|
// 标题 |
|
|
|
Row( |
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
children: [ |
|
|
|
// 标题 |
|
|
|
CachedNetworkImage(imageUrl: model?.titleImageUrl, width: 90,), |
|
|
|
SizedBox(height: 20), |
|
|
|
// 文案 |
|
|
|
Text(model?.text?? '', style: TextStyle(color: HexColor.fromHex(model?.textColor), fontSize: 15), maxLines: 4, overflow: TextOverflow.ellipsis,), |
|
|
|
SizedBox(height: 22), |
|
|
|
// 复制按钮 or 分享 按钮 |
|
|
|
Visibility( |
|
|
|
visible: (model?.isShowShareFriend ?? '0') == '1', |
|
|
|
// 仅仅复制按钮 |
|
|
|
replacement: GestureDetector( onTap: () => _clickCopyButton(model?.text) ,child: CachedNetworkImage(imageUrl: model?.copyLongImageUrl ?? '', width: double.infinity)), |
|
|
|
child: Row( |
|
|
|
children: [ |
|
|
|
// 复制按钮 |
|
|
|
Flexible(flex: 1, child: GestureDetector(onTap: () => _clickCopyButton(model?.text),child: CachedNetworkImage(imageUrl: model?.copyImageUrl, width: double.infinity,))), |
|
|
|
SizedBox(width: 20), |
|
|
|
// 分享按钮 |
|
|
|
Flexible(flex: 1,child: GestureDetector(onTap: ()=> _clickShareButton(model?.text), child: CachedNetworkImage(imageUrl: model?.shareImageUrl, width: double.infinity,))) |
|
|
|
], |
|
|
|
)) |
|
|
|
CachedNetworkImage(imageUrl: model?.scaleImageUrl, width: 36), |
|
|
|
CachedNetworkImage(imageUrl: model?.titleImageUrl, width: 90), |
|
|
|
SizedBox(width: 36,) |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
SizedBox(height: 20), |
|
|
|
// 文案 |
|
|
|
Text(model?.text?? '', style: TextStyle(color: HexColor.fromHex(model?.textColor), fontSize: 15), maxLines: 4, overflow: TextOverflow.ellipsis,), |
|
|
|
SizedBox(height: 22), |
|
|
|
// 复制按钮 or 分享 按钮 |
|
|
|
Visibility( |
|
|
|
visible: (model?.isShowShareFriend ?? '0') == '1', |
|
|
|
// 仅仅复制按钮 |
|
|
|
replacement: GestureDetector( onTap: () => _clickCopyButton(model?.text) ,child: CachedNetworkImage(imageUrl: model?.copyLongImageUrl ?? '', width: double.infinity)), |
|
|
|
child: Row( |
|
|
|
children: [ |
|
|
|
// 复制按钮 |
|
|
|
Flexible(flex: 1, child: GestureDetector(onTap: () => _clickCopyButton(model?.text),child: CachedNetworkImage(imageUrl: model?.copyImageUrl, width: double.infinity,))), |
|
|
|
SizedBox(width: 20), |
|
|
|
// 分享按钮 |
|
|
|
Flexible(flex: 1,child: GestureDetector(onTap: ()=> _clickShareButton(model?.text), child: CachedNetworkImage(imageUrl: model?.shareImageUrl, width: double.infinity,))) |
|
|
|
], |
|
|
|
)) |
|
|
|
], |
|
|
|
), |
|
|
|
) |
|
|
|
); |
|
|
|
} |
|
|
|