ads

Ads Here

Saturday, 28 September 2019

Adding notifier to close screen

In this tutorial we will learn step by step how to show notification of closing the app

Step 1 

Firstly open your project as shown


Step 2

Secondly drag and drop the notifier to the main screen as shown in image below.
Keep the properties of notifier as it is or you can use the light theme, but make sure to keep the text color as black for light theme



Step 3 

Lets go to block section

FIRST BLOCK:
When screen 1 will be back pressed notification will be shown
Set title "Do you what to exit? "
cancelable = true
Message can be kept as blank.
button1 text ="ok"
button 2 can be kept blank or Cancel



SECOND BLOCK:
Its the after choosing block
In this block the "get choice " must have the same text as the text of button1 text in first block.




That's it hope you like the tutorial

If you want to test the abov aia file then below is the link provided
https://drive.google.com/open?id=1C7TmVaIhEg-XkiH7wL6vOgKR-bv6t_Fb

Please stay tunned for next tutorials

No comments:

Post a Comment