Is the following code for Snack bar is correct?


#1


#2

I think its correct. What result do you see?


#3

This is the output


#4

Create a very simple app with only SnackBar and see if you still get this issue


#5

Sure sir, will check and let you know.


#6

The same error is coming in the new file also.


#7

Have you tried “close application” instead of “close screen”?


#8

Hi Ken Sir. Thanks for the reply.
I usually close the screen like this. At that time i dont need to use the close application.

image


#9

I don’t believe the issue you are having is because of the SnackBar Component.
Please try this .aia:
SnackBar.aia (1.8 KB)


#10

You need to check is open is true?!


#11

In this i think you wont get error. Only if you check is open is true, then that error comes!


#12

I understand now.
You are checking to see if the SnackBar “IsOpen” before it is Created.

You could do something like this for now:


#13

Thank you Sir. Will check and now.


#14

Ken sir, You are Fabolous. More respects to you. Why I respect you so much is you show the solutions to programmers like me.

Your code is working Perectly :smiling_face_with_three_hearts:


#15

Glad to here it!

FYI:
I submitted a Pull Request via Github and it was approved and merged.
What this means is after the next AB Update, this work around shouldn’t be needed.


#16

Thanks for your assistance / contribution


#17

What is a snakbar?? I don’t know anything about it.


#18

In this post you see green colour notifier like thing at the bottom of the screen. that is what called as snack bar