|
|
@ -39,8 +39,7 @@ class _FeaturedActivity extends State<FeaturedActivity> { |
|
|
|
"searchKey": "", |
|
|
|
"searchKey": "", |
|
|
|
"type": 1, |
|
|
|
"type": 1, |
|
|
|
"state": 1 |
|
|
|
"state": 1 |
|
|
|
}).catchError((error) { |
|
|
|
}).catchError((error) {}); |
|
|
|
}); |
|
|
|
|
|
|
|
if (baseData != null && baseData.isSuccess) { |
|
|
|
if (baseData != null && baseData.isSuccess) { |
|
|
|
activityList = baseData.data.list; |
|
|
|
activityList = baseData.data.list; |
|
|
|
if (activityList != null && activityList.length == 1) |
|
|
|
if (activityList != null && activityList.length == 1) |
|
|
@ -101,13 +100,15 @@ class _FeaturedActivity extends State<FeaturedActivity> { |
|
|
|
color: Colors.green, |
|
|
|
color: Colors.green, |
|
|
|
image: DecorationImage( |
|
|
|
image: DecorationImage( |
|
|
|
image: NetworkImage( |
|
|
|
image: NetworkImage( |
|
|
|
activityList[1].coverImg, |
|
|
|
activityList[2].coverImg, |
|
|
|
), |
|
|
|
), |
|
|
|
fit: BoxFit.cover, |
|
|
|
fit: BoxFit.cover, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox(height: 5,), |
|
|
|
SizedBox( |
|
|
|
|
|
|
|
height: 5, |
|
|
|
|
|
|
|
), |
|
|
|
Container( |
|
|
|
Container( |
|
|
|
child: stackItem(12.sp, activityList[2]), |
|
|
|
child: stackItem(12.sp, activityList[2]), |
|
|
|
margin: EdgeInsets.symmetric(horizontal: 5.w), |
|
|
|
margin: EdgeInsets.symmetric(horizontal: 5.w), |
|
|
@ -123,7 +124,7 @@ class _FeaturedActivity extends State<FeaturedActivity> { |
|
|
|
fit: BoxFit.cover, |
|
|
|
fit: BoxFit.cover, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
) |
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
@ -149,6 +150,8 @@ class _FeaturedActivity extends State<FeaturedActivity> { |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
Text( |
|
|
|
Text( |
|
|
|
activity.mainTitle, |
|
|
|
activity.mainTitle, |
|
|
|
|
|
|
|
overflow: TextOverflow.ellipsis, |
|
|
|
|
|
|
|
maxLines: 1, |
|
|
|
style: TextStyle( |
|
|
|
style: TextStyle( |
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
fontSize: textSize, |
|
|
|
fontSize: textSize, |
|
|
@ -181,6 +184,12 @@ class _FeaturedActivity extends State<FeaturedActivity> { |
|
|
|
borderRadius: BorderRadius.circular(20), |
|
|
|
borderRadius: BorderRadius.circular(20), |
|
|
|
), |
|
|
|
), |
|
|
|
alignment: Alignment.center, |
|
|
|
alignment: Alignment.center, |
|
|
|
|
|
|
|
child: |
|
|
|
|
|
|
|
GestureDetector( |
|
|
|
|
|
|
|
onTap: (){ |
|
|
|
|
|
|
|
Navigator.of(context).pushNamed('/router/web_page', |
|
|
|
|
|
|
|
arguments: {"activityId": activity.id}); |
|
|
|
|
|
|
|
}, |
|
|
|
child:Row( |
|
|
|
child:Row( |
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
@ -199,7 +208,7 @@ class _FeaturedActivity extends State<FeaturedActivity> { |
|
|
|
size: 12, |
|
|
|
size: 12, |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
)), |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
|
); |
|
|
|
); |
|
|
|