|
@@ -25,6 +25,7 @@ class HomePage extends StatefulWidget {
|
|
|
class _HomePageState extends State<HomePage> {
|
|
class _HomePageState extends State<HomePage> {
|
|
|
List<CompetitionSeason> seasonList = [];
|
|
List<CompetitionSeason> seasonList = [];
|
|
|
int nowIndex = 0;
|
|
int nowIndex = 0;
|
|
|
|
|
+ PageController _pageController;
|
|
|
|
|
|
|
|
void getSeasonInfo() async {
|
|
void getSeasonInfo() async {
|
|
|
Toast.show(context, '加载中', -1, 'loading');
|
|
Toast.show(context, '加载中', -1, 'loading');
|
|
@@ -89,6 +90,7 @@ class _HomePageState extends State<HomePage> {
|
|
|
@override
|
|
@override
|
|
|
void initState() {
|
|
void initState() {
|
|
|
super.initState();
|
|
super.initState();
|
|
|
|
|
+ _pageController=PageController(initialPage:0);
|
|
|
Future.delayed(const Duration(seconds: 1), () {
|
|
Future.delayed(const Duration(seconds: 1), () {
|
|
|
getSeasonInfo();
|
|
getSeasonInfo();
|
|
|
});
|
|
});
|