imReker / FlutterHomeWidget

Flutter Home Widget app demonstrates how to create a home screen widget rendered by Flutter.
BSD 3-Clause "New" or "Revised" License
104 stars 17 forks source link

Can button receive events on UIWidget ? #3

Closed answer0732 closed 3 years ago

suztomo commented 3 years ago

No, use Link to detect touch.

https://stackoverflow.com/questions/64230355/perform-a-deeplink-from-swiftui-widget-on-tap/64230963

answer0732 commented 3 years ago

No, use Link to detect touch.

https://stackoverflow.com/questions/64230355/perform-a-deeplink-from-swiftui-widget-on-tap/64230963

thanks ! but i am using android, what should I do?

suztomo commented 3 years ago

I'm afraid that I don't develop Android widgets.

answer0732 commented 3 years ago

I'm afraid that I don't develop Android widgets.

thanks anyway !

imReker commented 3 years ago

No, use Link to detect touch. https://stackoverflow.com/questions/64230355/perform-a-deeplink-from-swiftui-widget-on-tap/64230963

thanks ! but i am using android, what should I do?

Similar to iOS, by using PendingIntent, please read the documents of Android Widget.