Showing
1 changed file
with
3 additions
and
5 deletions
| @@ -45,14 +45,12 @@ export struct VoiceInputView { | @@ -45,14 +45,12 @@ export struct VoiceInputView { | ||
| 45 | }) | 45 | }) |
| 46 | } | 46 | } |
| 47 | }.height(100) | 47 | }.height(100) |
| 48 | - Button() | ||
| 49 | - .type(ButtonType.Circle) | ||
| 50 | - .backgroundImage($r('app.media.WDInput_voice_longPress_icon')) | ||
| 51 | - .backgroundColor(Color.White) | 48 | + Image($r('app.media.WDInput_voice_longPress_icon')) |
| 52 | .width(60) | 49 | .width(60) |
| 53 | .height(60) | 50 | .height(60) |
| 51 | + | ||
| 54 | .gesture( | 52 | .gesture( |
| 55 | - LongPressGesture() | 53 | + LongPressGesture({duration:300}) |
| 56 | .onAction((event: GestureEvent) => { | 54 | .onAction((event: GestureEvent) => { |
| 57 | // this | 55 | // this |
| 58 | this.playAnimationOne = true | 56 | this.playAnimationOne = true |
-
Please register or login to post a comment