'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?



Solution 1:[1]

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

Solution 2:[2]

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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Hrithik Tiwari
Solution 2