WallPaper_FSX_Flutter/lib/modules/me/me_controller.dart
2024-05-13 13:44:27 +08:00

17 lines
514 B
Dart

import 'package:get/get.dart';
import 'package:wallpaper/routes/app_pages.dart';
class MeController extends GetxController {
// final options = ['About', 'Feedback', 'Share', 'Privacy Policy', 'Terms of Service'];
final options = ['About', 'Privacy Policy', 'Terms of Service'];
void itemOnTap(int index) {
if (index == 0) {
Get.toNamed(AppPages.about);
}
if (index == 1 || index == 2) {
Get.toNamed(AppPages.webPage, arguments: {'title': options[index], 'url': null});
}
}
}