LockScreen widget in Flutter?

3.2k Views Asked by At

There are some plugins like home_widget: ^0.1.6 that supports only HomeScreen Widgets.

Recently Apple launched LockScreen Widgets on iOS 16.

Is there any plugin for that? How do I implement that?

enter image description here

2

There are 2 best solutions below

1
Praxder On

At the time of this writing, there are no known plugins that do that. There are two options moving forward, based on timeline for when you need this functionality:

  1. Wait for someone to create a plugin that does this
  2. Create the plugin yourself. Follow the Apple Docs and write a custom Flutter plugin (and then preferably publish it to pub.dev for others to benefit from as well).
0
Kasun Hasanga On

This is native functionality, as @Shredder2794 said, if anyone has not created a plugin for that purpose, we have to build it.

You have to write separate native codes for iOS and Android with platform channel