You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
629 B
20 lines
629 B
|
2 months ago
|
import 'package:flutter/material.dart';
|
||
|
|
import 'package:get/get.dart';
|
||
|
3 weeks ago
|
import 'package:problem_check_system/app/features/enterprise/presentation/pages/enterprise_list_page.dart';
|
||
|
2 weeks ago
|
import 'package:problem_check_system/app/features/my/views/my_page.dart';
|
||
|
|
import 'package:problem_check_system/app/features/problem/presentation/views/problem_page.dart';
|
||
|
2 months ago
|
|
||
|
|
class HomeController extends GetxController {
|
||
|
|
var selectedIndex = 0.obs;
|
||
|
|
// 页面列表
|
||
|
|
final List<Widget> pages = [
|
||
|
4 weeks ago
|
const EnterpriseListPage(),
|
||
|
|
const ProblemPage(),
|
||
|
2 months ago
|
const MyPage(),
|
||
|
|
];
|
||
|
|
|
||
|
|
void changeIndex(int index) {
|
||
|
|
selectedIndex.value = index;
|
||
|
|
}
|
||
|
|
}
|