22 lines
611 B
Dart
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;
|
|
}
|
|
});
|
|
}
|
|
}
|