|
|
|
@ -151,7 +151,7 @@ class _CommunityDynamic extends State<CommunityDynamic> {
|
|
|
|
|
margin: EdgeInsets.only(top: 2), |
|
|
|
|
key: globalKey, |
|
|
|
|
alignment: Alignment.topCenter, |
|
|
|
|
padding: EdgeInsets.all(16), |
|
|
|
|
padding: EdgeInsets.only(left: 16,top: 16,right: 16), |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
color: Colors.white, |
|
|
|
|
boxShadow: [ |
|
|
|
@ -333,12 +333,16 @@ class _CommunityDynamic extends State<CommunityDynamic> {
|
|
|
|
|
height: 5.h, |
|
|
|
|
), |
|
|
|
|
if (!widget.isDetails) |
|
|
|
|
Row( |
|
|
|
|
Container( |
|
|
|
|
// padding: EdgeInsets.only(bottom: 16), |
|
|
|
|
child: Row( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
children: [ |
|
|
|
|
Expanded( |
|
|
|
|
child: Row( |
|
|
|
|
child: Container( |
|
|
|
|
padding: EdgeInsets.only(bottom: 16), |
|
|
|
|
child:Row( |
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
children: [ |
|
|
|
@ -361,33 +365,37 @@ class _CommunityDynamic extends State<CommunityDynamic> {
|
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
)), |
|
|
|
|
), |
|
|
|
|
Expanded( |
|
|
|
|
child: Row( |
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
children: [ |
|
|
|
|
SvgPicture.asset( |
|
|
|
|
"assets/svg/pinglun.svg", |
|
|
|
|
width: 16, |
|
|
|
|
height: 16, |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
width: 5, |
|
|
|
|
), |
|
|
|
|
Text( |
|
|
|
|
"${widget.article.comments ?? 0}", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
color: Color(0xFF1A1A1A), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
)), |
|
|
|
|
child:Container( |
|
|
|
|
padding: EdgeInsets.only(bottom: 16), |
|
|
|
|
child:Row( |
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
children: [ |
|
|
|
|
SvgPicture.asset( |
|
|
|
|
"assets/svg/pinglun.svg", |
|
|
|
|
width: 16, |
|
|
|
|
height: 16, |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
width: 5, |
|
|
|
|
), |
|
|
|
|
Text( |
|
|
|
|
"${widget.article.comments ?? 0}", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
color: Color(0xFF1A1A1A), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
))), |
|
|
|
|
Expanded( |
|
|
|
|
child: Row( |
|
|
|
|
child:Container( |
|
|
|
|
padding: EdgeInsets.only(bottom: 16), |
|
|
|
|
child:Row( |
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
children: [ |
|
|
|
@ -408,31 +416,32 @@ class _CommunityDynamic extends State<CommunityDynamic> {
|
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
)), |
|
|
|
|
), |
|
|
|
|
if (widget?.article?.author != widget.userId ?? "") |
|
|
|
|
Expanded( |
|
|
|
|
child: GestureDetector( |
|
|
|
|
behavior: HitTestBehavior.opaque, |
|
|
|
|
onTap: () { |
|
|
|
|
setState(() { |
|
|
|
|
choiceShowBottomSheet(); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
child: Container( |
|
|
|
|
padding: EdgeInsets.only(top:3), |
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
child: Text( |
|
|
|
|
"...", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 18.sp, |
|
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
|
color: Colors.black, |
|
|
|
|
Expanded( |
|
|
|
|
child: GestureDetector( |
|
|
|
|
behavior: HitTestBehavior.opaque, |
|
|
|
|
onTap: () { |
|
|
|
|
setState(() { |
|
|
|
|
choiceShowBottomSheet(); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
child: Container( |
|
|
|
|
padding: EdgeInsets.only(top:3,bottom: 16), |
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
// color: Colors.red, |
|
|
|
|
child: Text( |
|
|
|
|
"...", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 18.sp, |
|
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
|
color: Colors.black, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
))), |
|
|
|
|
))), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
),), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
@ -774,45 +783,45 @@ class _CommunityDynamic extends State<CommunityDynamic> {
|
|
|
|
|
SizedBox( |
|
|
|
|
height: 10, |
|
|
|
|
), |
|
|
|
|
// GestureDetector( |
|
|
|
|
// onTap: () { |
|
|
|
|
// setState(() { |
|
|
|
|
// Navigator.of(context).pop(); |
|
|
|
|
// share(); |
|
|
|
|
// }); |
|
|
|
|
// }, |
|
|
|
|
// child: Container( |
|
|
|
|
// child: Row( |
|
|
|
|
// children: [ |
|
|
|
|
// SizedBox( |
|
|
|
|
// width: 4, |
|
|
|
|
// ), |
|
|
|
|
// Image.asset( |
|
|
|
|
// "assets/image/icon_share.webp", |
|
|
|
|
// fit: BoxFit.cover, |
|
|
|
|
// width: 25, |
|
|
|
|
// height: 25, |
|
|
|
|
// color: Color(0xff515151), |
|
|
|
|
// ), |
|
|
|
|
// SizedBox( |
|
|
|
|
// width: 12, |
|
|
|
|
// ), |
|
|
|
|
// Text( |
|
|
|
|
// "分享", |
|
|
|
|
// style: TextStyle( |
|
|
|
|
// fontSize: 17.sp, |
|
|
|
|
// fontWeight: MyFontWeight.medium, |
|
|
|
|
// color: Color(0xFF1A1A1A), |
|
|
|
|
// ), |
|
|
|
|
// ), |
|
|
|
|
// ], |
|
|
|
|
// ), |
|
|
|
|
// )), |
|
|
|
|
// Container( |
|
|
|
|
// margin: EdgeInsets.symmetric(vertical: 12), |
|
|
|
|
// height: 1.h, |
|
|
|
|
// color: Color(0xFFF7F7F7), |
|
|
|
|
// ), |
|
|
|
|
GestureDetector( |
|
|
|
|
onTap: () { |
|
|
|
|
setState(() { |
|
|
|
|
// Navigator.of(context).pop(); |
|
|
|
|
// share(); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
child: Container( |
|
|
|
|
child: Row( |
|
|
|
|
children: [ |
|
|
|
|
SizedBox( |
|
|
|
|
width: 4, |
|
|
|
|
), |
|
|
|
|
Image.asset( |
|
|
|
|
"assets/image/icon_share.webp", |
|
|
|
|
fit: BoxFit.cover, |
|
|
|
|
width: 25, |
|
|
|
|
height: 25, |
|
|
|
|
color: Color(0xff515151), |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
width: 12, |
|
|
|
|
), |
|
|
|
|
Text( |
|
|
|
|
"分享", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 17.sp, |
|
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
|
color: Color(0xFF1A1A1A), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
)), |
|
|
|
|
Container( |
|
|
|
|
margin: EdgeInsets.symmetric(vertical: 12), |
|
|
|
|
height: 1.h, |
|
|
|
|
color: Color(0xFFF7F7F7), |
|
|
|
|
), |
|
|
|
|
GestureDetector( |
|
|
|
|
onTap: () { |
|
|
|
|
setState(() { |
|
|
|
|