my app will live on an Android tablet for the public, so logically I need to restrict what will be accessed. I need my app to always stay open, I can't exit it and when the device starts, it starts automatically (optional).
I'm using kiosk_mode, but the app is just pinned, if the person clicks on the screen the Android buttons are shown, in which they can hold and unpin the app, as well as pull the statusbar down and turn off the Wi-Fi, access the settings, for example.
Is there any way to do this blocking? In the application I hid a hidden button in which after entering a password, there are some settings, such as battery percentage, wifi settings, button to exit kiosk mode, which when clicked calls the stopKioskMode() function, to be able to exit the application in case of update, configuration...
But the problem is that the normal user can exit the application and use the tablet normally
Any idea? Thanks!
If you want to hide the System navigation bar and status bar in you'r project you can use
SystemChromeclass it provide by Flutter framework.now we try with toggle with button,
But I use Text widget with
GestureDetectorinstance of a Button,and I call it from my
MaterialApplike bellow,