Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TDCupertinoSwitch] 鸿蒙版本的flutter编译报错 #436

Open
DeutschTao opened this issue Jan 3, 2025 · 1 comment
Open

[TDCupertinoSwitch] 鸿蒙版本的flutter编译报错 #436

DeutschTao opened this issue Jan 3, 2025 · 1 comment

Comments

@DeutschTao
Copy link

tdesign-flutter 版本

0.1.8

重现链接

No response

重现步骤

  1. flutter项目中依赖鸿蒙版本的flutter3.22.0,
  2. 项目中引用tddesign
  3. 启动项目编译报错

期望结果

项目正常启动

实际结果

项目编译报错

Flutter版本

flutter的鸿蒙版本3.22.0

设备与机型信息

模拟器iphone12

系统版本

No response

补充说明

WechatIMG338
TDCupertinoSwitch组件中缺少对鸿蒙平台的处理
void _emitVibration() { switch (defaultTargetPlatform) { case TargetPlatform.iOS: HapticFeedback.lightImpact(); break; case TargetPlatform.android: case TargetPlatform.fuchsia: case TargetPlatform.linux: case TargetPlatform.macOS: case TargetPlatform.windows: break; } }

Copy link
Contributor

github-actions bot commented Jan 3, 2025

👋 @DeutschTao,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant