hi-client/lib/app/modules/hi_menu/controllers/hi_menu_controller.dart
speakeloudest f42a481452
Some checks failed
Build Android APK / 编译 libcore.aar (push) Has been cancelled
Build Android APK / 编译 Android APK (release) (push) Has been cancelled
Build Android APK / 创建 GitHub Release (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Android) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Windows) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (macOS) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Linux) (push) Has been cancelled
Build Multi-Platform / 构建 Android APK (push) Has been cancelled
Build Multi-Platform / 构建 Windows (push) Has been cancelled
Build Multi-Platform / 构建 macOS (push) Has been cancelled
Build Multi-Platform / 构建 Linux (push) Has been cancelled
Build Multi-Platform / 创建 Release (push) Has been cancelled
Build Windows / build (push) Has been cancelled
feat: 更新代码仓库全部修改
2025-10-30 04:47:53 -07:00

28 lines
872 B
Dart
Executable File

import 'package:get/get.dart';
import 'package:easy_refresh/easy_refresh.dart';
import 'package:kaer_with_panels/app/utils/kr_log_util.dart';
import '../../../services/api_service/kr_api.user.dart';
import '../../../utils/kr_common_util.dart';
import '../../../common/app_run_data.dart';
import 'package:package_info_plus/package_info_plus.dart';
import 'package:kaer_with_panels/app/services/kr_subscribe_service.dart';
class HIMenuController extends GetxController {
/// 订阅服务
final KRSubscribeService kr_subscribeService = KRSubscribeService();
// 版本号
final RxString kr_version = ''.obs;
@override
void onInit() {
super.onInit();
_kr_getVersion();
}
// 获取版本号
Future<void> _kr_getVersion() async {
final PackageInfo packageInfo = await PackageInfo.fromPlatform();
kr_version.value = packageInfo.version;
}
}