|
|
@ -159,10 +159,10 @@ class _CommunityDynamic extends State<CommunityDynamic> { |
|
|
|
return Column( |
|
|
|
return Column( |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
Container( |
|
|
|
Container( |
|
|
|
margin: EdgeInsets.only(top: 2), |
|
|
|
margin: EdgeInsets.only(top: 2.h), |
|
|
|
key: globalKey, |
|
|
|
key: globalKey, |
|
|
|
alignment: Alignment.topCenter, |
|
|
|
alignment: Alignment.topCenter, |
|
|
|
padding: EdgeInsets.only(left: 16,top: 16,right: 16), |
|
|
|
padding: EdgeInsets.only(left: 16.w,top: 16.h,right: 16.w), |
|
|
|
decoration: BoxDecoration( |
|
|
|
decoration: BoxDecoration( |
|
|
|
color: Colors.white, |
|
|
|
color: Colors.white, |
|
|
|
boxShadow: [ |
|
|
|
boxShadow: [ |
|
|
@ -184,7 +184,7 @@ class _CommunityDynamic extends State<CommunityDynamic> { |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
Container( |
|
|
|
Container( |
|
|
|
height: 44, |
|
|
|
height: 44.h, |
|
|
|
child: Row( |
|
|
|
child: Row( |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
GestureDetector( |
|
|
|
GestureDetector( |
|
|
@ -213,7 +213,7 @@ class _CommunityDynamic extends State<CommunityDynamic> { |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox( |
|
|
|
SizedBox( |
|
|
|
width: 8, |
|
|
|
width: 8.w, |
|
|
|
), |
|
|
|
), |
|
|
|
Column( |
|
|
|
Column( |
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly, |
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly, |
|
|
@ -222,7 +222,7 @@ class _CommunityDynamic extends State<CommunityDynamic> { |
|
|
|
Text( |
|
|
|
Text( |
|
|
|
widget?.article?.authorName ?? "", |
|
|
|
widget?.article?.authorName ?? "", |
|
|
|
style: TextStyle( |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 15.sp, |
|
|
|
fontSize: MediaQuery.of(context).size.width >= 650 ? 12.sp :15.sp, |
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
color: Color(0xFF1A1A1A), |
|
|
|
color: Color(0xFF1A1A1A), |
|
|
|
), |
|
|
|
), |
|
|
@ -230,7 +230,7 @@ class _CommunityDynamic extends State<CommunityDynamic> { |
|
|
|
Text( |
|
|
|
Text( |
|
|
|
widget?.article?.createTime ?? "", |
|
|
|
widget?.article?.createTime ?? "", |
|
|
|
style: TextStyle( |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 13.sp, |
|
|
|
fontSize: MediaQuery.of(context).size.width >= 650 ? 10.sp :13.sp, |
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
color: Color(0xFF808080), |
|
|
|
color: Color(0xFF808080), |
|
|
|
), |
|
|
|
), |
|
|
@ -353,7 +353,7 @@ class _CommunityDynamic extends State<CommunityDynamic> { |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
Expanded( |
|
|
|
Expanded( |
|
|
|
child: Container( |
|
|
|
child: Container( |
|
|
|
padding: EdgeInsets.only(bottom: 16), |
|
|
|
padding: EdgeInsets.only(bottom: 16.h), |
|
|
|
child:Row( |
|
|
|
child:Row( |
|
|
|
// mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
// mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
// crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
// crossAxisAlignment: CrossAxisAlignment.center, |
|
|
@ -364,7 +364,7 @@ class _CommunityDynamic extends State<CommunityDynamic> { |
|
|
|
height: 16, |
|
|
|
height: 16, |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox( |
|
|
|
SizedBox( |
|
|
|
width: 5, |
|
|
|
width: 5.w, |
|
|
|
), |
|
|
|
), |
|
|
|
Text( |
|
|
|
Text( |
|
|
|
(widget.article != null) |
|
|
|
(widget.article != null) |
|
|
@ -381,7 +381,7 @@ class _CommunityDynamic extends State<CommunityDynamic> { |
|
|
|
), |
|
|
|
), |
|
|
|
Expanded( |
|
|
|
Expanded( |
|
|
|
child:Container( |
|
|
|
child:Container( |
|
|
|
padding: EdgeInsets.only(bottom: 16), |
|
|
|
padding: EdgeInsets.only(bottom: 16.h), |
|
|
|
child:Row( |
|
|
|
child:Row( |
|
|
|
// mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
// mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
// crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
// crossAxisAlignment: CrossAxisAlignment.center, |
|
|
@ -392,7 +392,7 @@ class _CommunityDynamic extends State<CommunityDynamic> { |
|
|
|
height: 16, |
|
|
|
height: 16, |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox( |
|
|
|
SizedBox( |
|
|
|
width: 5, |
|
|
|
width: 5.w, |
|
|
|
), |
|
|
|
), |
|
|
|
Text( |
|
|
|
Text( |
|
|
|
"${widget.article.comments ?? 0}", |
|
|
|
"${widget.article.comments ?? 0}", |
|
|
@ -406,7 +406,7 @@ class _CommunityDynamic extends State<CommunityDynamic> { |
|
|
|
))), |
|
|
|
))), |
|
|
|
Expanded( |
|
|
|
Expanded( |
|
|
|
child:Container( |
|
|
|
child:Container( |
|
|
|
padding: EdgeInsets.only(bottom: 16), |
|
|
|
padding: EdgeInsets.only(bottom: 16.h), |
|
|
|
child:Row( |
|
|
|
child:Row( |
|
|
|
// mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
// mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
// crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
// crossAxisAlignment: CrossAxisAlignment.center, |
|
|
@ -417,7 +417,7 @@ class _CommunityDynamic extends State<CommunityDynamic> { |
|
|
|
height: 16, |
|
|
|
height: 16, |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox( |
|
|
|
SizedBox( |
|
|
|
width: 5, |
|
|
|
width: 5.w, |
|
|
|
), |
|
|
|
), |
|
|
|
Text( |
|
|
|
Text( |
|
|
|
"${widget.article.likes ?? 0}", |
|
|
|
"${widget.article.likes ?? 0}", |
|
|
@ -440,7 +440,7 @@ class _CommunityDynamic extends State<CommunityDynamic> { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
child: Container( |
|
|
|
child: Container( |
|
|
|
padding: EdgeInsets.only(top:3,bottom: 16), |
|
|
|
padding: EdgeInsets.only(top:3.h,bottom: 16.h), |
|
|
|
alignment: Alignment.center, |
|
|
|
alignment: Alignment.center, |
|
|
|
// color: Colors.red, |
|
|
|
// color: Colors.red, |
|
|
|
child: Text( |
|
|
|
child: Text( |
|
|
@ -458,7 +458,7 @@ class _CommunityDynamic extends State<CommunityDynamic> { |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
Container( |
|
|
|
Container( |
|
|
|
height: 16, |
|
|
|
height: 16.h, |
|
|
|
color: Color(0xFFF7F7F7), |
|
|
|
color: Color(0xFFF7F7F7), |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
@ -793,7 +793,7 @@ class _CommunityDynamic extends State<CommunityDynamic> { |
|
|
|
child: Column( |
|
|
|
child: Column( |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
SizedBox( |
|
|
|
SizedBox( |
|
|
|
height: 10, |
|
|
|
height: 10.h, |
|
|
|
), |
|
|
|
), |
|
|
|
GestureDetector( |
|
|
|
GestureDetector( |
|
|
|
onTap: () { |
|
|
|
onTap: () { |
|
|
@ -806,7 +806,7 @@ class _CommunityDynamic extends State<CommunityDynamic> { |
|
|
|
child: Row( |
|
|
|
child: Row( |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
SizedBox( |
|
|
|
SizedBox( |
|
|
|
width: 4, |
|
|
|
width: 4.w, |
|
|
|
), |
|
|
|
), |
|
|
|
Image.asset( |
|
|
|
Image.asset( |
|
|
|
"assets/image/icon_share.webp", |
|
|
|
"assets/image/icon_share.webp", |
|
|
@ -816,7 +816,7 @@ class _CommunityDynamic extends State<CommunityDynamic> { |
|
|
|
color: Color(0xff515151), |
|
|
|
color: Color(0xff515151), |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox( |
|
|
|
SizedBox( |
|
|
|
width: 12, |
|
|
|
width: 12.w, |
|
|
|
), |
|
|
|
), |
|
|
|
Text( |
|
|
|
Text( |
|
|
|
S.of(context).fenxiang, |
|
|
|
S.of(context).fenxiang, |
|
|
@ -847,7 +847,7 @@ class _CommunityDynamic extends State<CommunityDynamic> { |
|
|
|
child: Row( |
|
|
|
child: Row( |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
SizedBox( |
|
|
|
SizedBox( |
|
|
|
width: 4, |
|
|
|
width: 4.w, |
|
|
|
), |
|
|
|
), |
|
|
|
SvgPicture.asset( |
|
|
|
SvgPicture.asset( |
|
|
|
"assets/svg/ju_b.svg", |
|
|
|
"assets/svg/ju_b.svg", |
|
|
@ -855,7 +855,7 @@ class _CommunityDynamic extends State<CommunityDynamic> { |
|
|
|
height: 20, |
|
|
|
height: 20, |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox( |
|
|
|
SizedBox( |
|
|
|
width: 15, |
|
|
|
width: 15.w, |
|
|
|
), |
|
|
|
), |
|
|
|
Text( |
|
|
|
Text( |
|
|
|
S.of(context).jubaogaineirong, |
|
|
|
S.of(context).jubaogaineirong, |
|
|
|