17 lines
514 B
Dart
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});
|
|
}
|
|
}
|
|
}
|