|
|
@ -25,7 +25,7 @@ class ProductContent extends StatelessWidget {
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(width: ScreenUtil().setWidth(10)),
|
|
|
|
SizedBox(width: 10.w),
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
'元',
|
|
|
|
'元',
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
@ -41,9 +41,9 @@ class ProductContent extends StatelessWidget {
|
|
|
|
Container _containerTitle(String title) {
|
|
|
|
Container _containerTitle(String title) {
|
|
|
|
return Container(
|
|
|
|
return Container(
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
top: ScreenUtil().setWidth(28),
|
|
|
|
top: 28.w,
|
|
|
|
bottom: ScreenUtil().setWidth(18),
|
|
|
|
bottom: 18.w,
|
|
|
|
right: ScreenUtil().setWidth(106),
|
|
|
|
right: 106.w,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Text(
|
|
|
|
child: Text(
|
|
|
|
title,
|
|
|
|
title,
|
|
|
@ -57,7 +57,7 @@ class ProductContent extends StatelessWidget {
|
|
|
|
|
|
|
|
|
|
|
|
Container _containerSubtitle(String shortTitle) {
|
|
|
|
Container _containerSubtitle(String shortTitle) {
|
|
|
|
return Container(
|
|
|
|
return Container(
|
|
|
|
margin: EdgeInsets.only(right: ScreenUtil().setWidth(286)),
|
|
|
|
margin: EdgeInsets.only(right: 286.w),
|
|
|
|
child: Text(
|
|
|
|
child: Text(
|
|
|
|
shortTitle,
|
|
|
|
shortTitle,
|
|
|
|
maxLines: 1,
|
|
|
|
maxLines: 1,
|
|
|
@ -78,13 +78,13 @@ class ProductContent extends StatelessWidget {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
left: ScreenUtil().setWidth(72),
|
|
|
|
left: 72.w,
|
|
|
|
right: ScreenUtil().setWidth(72),
|
|
|
|
right: 72.w,
|
|
|
|
top: ScreenUtil().setWidth(58),
|
|
|
|
top: 58.w,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(33),
|
|
|
|
horizontal: 33.w,
|
|
|
|
vertical: ScreenUtil().setWidth(11),
|
|
|
|
vertical: 11.w,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Text(
|
|
|
|
child: Text(
|
|
|
|
desc,
|
|
|
|
desc,
|
|
|
@ -101,12 +101,11 @@ class ProductContent extends StatelessWidget {
|
|
|
|
Positioned _positionedShare() {
|
|
|
|
Positioned _positionedShare() {
|
|
|
|
return Positioned(
|
|
|
|
return Positioned(
|
|
|
|
right: 0,
|
|
|
|
right: 0,
|
|
|
|
top: ScreenUtil().setWidth(169),
|
|
|
|
top: 169.w,
|
|
|
|
child: InkWell(
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () {
|
|
|
|
onTap: () {
|
|
|
|
shareToWeChat(WeChatShareWebPageModel(
|
|
|
|
shareToWeChat(WeChatShareWebPageModel(
|
|
|
|
'https://mobile.baidu.com/item?docid=27505288',
|
|
|
|
'https://mobile.baidu.com/item?docid=27505288',
|
|
|
|
|
|
|
|
|
|
|
|
title: itemtitle,
|
|
|
|
title: itemtitle,
|
|
|
|
description: '前往小蜜蜂智慧社区查看吧',
|
|
|
|
description: '前往小蜜蜂智慧社区查看吧',
|
|
|
|
));
|
|
|
|
));
|
|
|
@ -123,8 +122,8 @@ class ProductContent extends StatelessWidget {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(14),
|
|
|
|
horizontal: 14.w,
|
|
|
|
vertical: ScreenUtil().setWidth(9),
|
|
|
|
vertical: 9.w,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Row(
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
@ -132,7 +131,7 @@ class ProductContent extends StatelessWidget {
|
|
|
|
SimpleLineIcons.share,
|
|
|
|
SimpleLineIcons.share,
|
|
|
|
size: ScreenUtil().setSp(20),
|
|
|
|
size: ScreenUtil().setSp(20),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(width: ScreenUtil().setWidth(12)),
|
|
|
|
SizedBox(width: 12.w),
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
'分享',
|
|
|
|
'分享',
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
@ -149,7 +148,7 @@ class ProductContent extends StatelessWidget {
|
|
|
|
|
|
|
|
|
|
|
|
Positioned _positionedRecommend() {
|
|
|
|
Positioned _positionedRecommend() {
|
|
|
|
return Positioned(
|
|
|
|
return Positioned(
|
|
|
|
right: ScreenUtil().setWidth(453),
|
|
|
|
right: 453.w,
|
|
|
|
bottom: 100.w,
|
|
|
|
bottom: 100.w,
|
|
|
|
child: Row(
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
@ -158,7 +157,7 @@ class ProductContent extends StatelessWidget {
|
|
|
|
color: Color(0xff999999),
|
|
|
|
color: Color(0xff999999),
|
|
|
|
size: ScreenUtil().setSp(24),
|
|
|
|
size: ScreenUtil().setSp(24),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(width: ScreenUtil().setWidth(12)),
|
|
|
|
SizedBox(width: 12.w),
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
'推荐理由',
|
|
|
|
'推荐理由',
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
@ -177,9 +176,9 @@ class ProductContent extends StatelessWidget {
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Padding(
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left: ScreenUtil().setWidth(32),
|
|
|
|
left: 32.w,
|
|
|
|
top: ScreenUtil().setWidth(25),
|
|
|
|
top: 25.w,
|
|
|
|
bottom: ScreenUtil().setWidth(20),
|
|
|
|
bottom: 20.w,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|