emvaized
emvaized

Reputation: 1125

Flutter - show android homescreen widget in the app

Is it possible somehow to display Android homescreen widget as a Flutter widget?

I've read about PlatformView widget that can embed any Android view inside Flutter app. How is it possible to do the same with homescreen widgets?

Upvotes: 3

Views: 3946

Answers (2)

user1115139
user1115139

Reputation:

There is no official support from flutter but you can take a look at this video explaining how to create a home widget using flutter unfortunately the speak he didn't post the code. It looks like the only solution to add the app widget android code in the generated code which means you should know android development in kotlin/java.

Upvotes: 0

Hrithik Tiwari
Hrithik Tiwari

Reputation: 41

I found a github project which is only for android in flutter but initially has much to solve the problem This flutter_home_screen_widget_example github repo

Also found a similar github issue26134 requesting for the same

Got two more related stackoverflow questions

questions/44120149/android-lock-screen-widget-in-flutter

questions/47870740/flutter-is-it-somehow-possible-to-create-app-widgets-android-and-today-extens#47887388

Upvotes: 1

Related Questions