fix(flutter): 修复 Flutter 3.24.5 CupertinoSwitch API 兼容性问题

- 将已弃用的 activeTrackColor 参数替换为 activeColor
- 影响文件:
  * lib/app/modules/kr_setting/views/kr_setting_view.dart
  * lib/app/modules/kr_home/views/kr_home_connection_info_view.dart
- 修复 macOS/iOS 构建错误

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Rust 2025-10-27 23:23:56 +08:00
parent 6ca55a3d44
commit ed8afecf85
2 changed files with 2 additions and 2 deletions

View File

@ -214,7 +214,7 @@ class KRHomeConnectionInfoView extends GetView<KRHomeController> {
onChanged: (bool value) { onChanged: (bool value) {
controller.kr_toggleSwitch(value); controller.kr_toggleSwitch(value);
}, },
activeTrackColor: Colors.blue, activeColor: Colors.blue,
), ),
], ],
), ),

View File

@ -411,7 +411,7 @@ class KRSettingView extends GetView<KRSettingController> {
() => CupertinoSwitch( () => CupertinoSwitch(
value: value.value, value: value.value,
onChanged: onChanged, onChanged: onChanged,
activeTrackColor: Colors.blue, activeColor: Colors.blue,
), ),
), ),
); );