pile_nav_new/lib/pages/pile/pileGenerateCard/pileGenerController.dart
2024-09-04 17:56:48 +08:00

22 lines
611 B
Dart

import 'package:get/get.dart';
class PileGenerController extends GetxController {
var isPileCardVisible = false.obs; // 控制生成桩点的卡片是否可见
var isRealViewCardVisible = false.obs; // 控制生成桩点的卡片是否可见
@override
void onInit() {
super.onInit();
// 监听 isRealViewCardVisible 的变化
ever(isRealViewCardVisible, (bool isVisible) {
if (isVisible) {
isPileCardVisible.value = false;
}
});
ever(isPileCardVisible, (bool isVisible) {
if (isVisible) {
isRealViewCardVisible.value = false;
}
});
}
}