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:
parent
6ca55a3d44
commit
ed8afecf85
@ -214,7 +214,7 @@ class KRHomeConnectionInfoView extends GetView<KRHomeController> {
|
||||
onChanged: (bool value) {
|
||||
controller.kr_toggleSwitch(value);
|
||||
},
|
||||
activeTrackColor: Colors.blue,
|
||||
activeColor: Colors.blue,
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
@ -411,7 +411,7 @@ class KRSettingView extends GetView<KRSettingController> {
|
||||
() => CupertinoSwitch(
|
||||
value: value.value,
|
||||
onChanged: onChanged,
|
||||
activeTrackColor: Colors.blue,
|
||||
activeColor: Colors.blue,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user