Flutter - show android homescreen widget in the app

3,128

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

Share:
3,128
emvaized
Author by

emvaized

Updated on December 20, 2022

Comments

  • emvaized
    emvaized over 1 year

    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?

    • Aawaz Gyawali
      Aawaz Gyawali almost 4 years
      Homescreen widget you mean Launcher widget?
    • emvaized
      emvaized almost 4 years
      @AawazGyawali Exactly
    • Pavel
      Pavel almost 4 years
      Displaying homescreen widgets from other apps will likely require writing lots of native Android code. Check this: docs, tutorial
    • emvaized
      emvaized almost 4 years
      @Pavel Sure, I know. I just saw a lot of Flutter packages that embed native views, like this one: github.com/DevFatani/Web_Vuw
    • emvaized
      emvaized almost 4 years
      And was just wondering, how it's possible to do a similar thing with homescreen widgets
  • emvaized
    emvaized almost 4 years
    This github project, as far as I understand, is intended to show Flutter widgets on homescreen, not homescreen widgets in Flutter app
  • Dreamcatcher
    Dreamcatcher over 2 years
    example code added after 5 months github.com/slightfoot/android-note-widget