ticket_main_logic.dart
809 字节
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import 'package:cp_offline_manage/router/route_config.dart';
import 'package:flutter/cupertino.dart';
import 'package:get/get.dart';
class Ticket_mainLogic extends GetxController {
var selectIndex = 0;
TextEditingController textController = TextEditingController();
FocusNode focusNode = FocusNode();
@override
void onReady() {
// TODO: implement onReady
super.onReady();
}
///改变栏目
void changeSelect(index) {
if(index != selectIndex) {
selectIndex = index;
update();
}
}
///搜索
void searchAction({bool isLoading = false}) async {
}
///根据输入框文字判断是否显示工具栏
void changeToolForWords(String s) {
}
///跳转到账本详情页
void jumpToDetail() {
Get.toNamed(RouteConfig.ticket_detail_key);
}
}