How to make the application screen appear when the screen is opened in Flutter

628

You can look into the hardware_buttons package. With this package, you can detect the lock screen button pressed. But I'm not sure that there is a way to launch your app with these hardware buttons.

Share:
628
berkipekoglu
Author by

berkipekoglu

Junior Full Stack Developer

Updated on December 25, 2022

Comments

  • berkipekoglu
    berkipekoglu over 1 year

    When the lock screen screen opens in Flutter, I want to launch and show my own app.

    For example, an app will run on the screen that opens when I press the phone's unlock key. When the user selects the correct meaning of the English word in this application, the screen will open.

    Actually what I want to ask is how can I check that the lock screen has been pressed?

    I found Lock Screen plugins but they are only for creating a password lock screen.

  • berkipekoglu
    berkipekoglu over 3 years
    Thank you so much! I will examine the package. Can I run my application continuously in the background?
  • Akif
    Akif over 3 years
    Yes, you can. Read more from this blog: medium.com/vrt-digital-studio/flutter-workmanager-81e0cfbd6f‌​6e And you can look at the background_fetch package: pub.dev/packages/background_fetch
  • berkipekoglu
    berkipekoglu over 3 years
    Thank you so much sir! ama gerçekten çok teşekkür ederim cevabınız için :)