|
|
|
@ -6,6 +6,8 @@ import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|
|
|
|
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart'; |
|
|
|
|
import 'package:flutter_swiper_view/flutter_swiper_view.dart'; |
|
|
|
|
import 'package:get/get.dart'; |
|
|
|
|
import 'package:get/utils.dart'; |
|
|
|
|
import 'package:huixiang/data/activity_pos.dart'; |
|
|
|
|
import 'package:huixiang/data/article.dart'; |
|
|
|
|
import 'package:huixiang/data/banner.dart'; |
|
|
|
@ -51,9 +53,7 @@ class HomePage extends StatefulWidget {
|
|
|
|
|
final List<InterviewCouponList>? interviewCouponList; |
|
|
|
|
final List<FirstLoginCouponList>? firstLoginCouponList; |
|
|
|
|
|
|
|
|
|
HomePage(Key key, this.changeTab, |
|
|
|
|
{this.invite, this.interviewCouponList, this.firstLoginCouponList}) |
|
|
|
|
: super(key: key); |
|
|
|
|
HomePage(Key key, this.changeTab, {this.invite, this.interviewCouponList, this.firstLoginCouponList}) : super(key: key); |
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
State<StatefulWidget> createState() { |
|
|
|
@ -607,7 +607,6 @@ class HomePageState extends State<HomePage> with AutomaticKeepAliveClientMixin {
|
|
|
|
|
Widget spread() { |
|
|
|
|
return Container( |
|
|
|
|
width: double.infinity, |
|
|
|
|
// margin: EdgeInsets.symmetric(horizontal:14.w), |
|
|
|
|
height: 85.h, |
|
|
|
|
child: activityBannerData.isNotEmpty |
|
|
|
|
? Swiper( |
|
|
|
@ -633,7 +632,7 @@ class HomePageState extends State<HomePage> with AutomaticKeepAliveClientMixin {
|
|
|
|
|
spreadBannerClick(activityBannerData[position]); |
|
|
|
|
}, |
|
|
|
|
child: Container( |
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 14.w), |
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 14.w), |
|
|
|
|
child: MImage( |
|
|
|
|
activityBannerData[position].imgUrl ?? "", |
|
|
|
|
fit: BoxFit.cover, |
|
|
|
|