SnackBar. I will use a button to click, if you click it, it will show you a snack bar.
SnackBar. First, we should create a
contentis a widget, the
Duration, the animation is an Animation. So let's talk about them one by one.
labelis the String, the
onPressedis a function. The other two are the
Color. Let's look at an example.
I Know!, the console will print some strings.
SnackBar, you should use the parameter.
duration. Let's see an example.
duration. I just use the
backgroundColor,because they are very easy and we have used its type before, so I don't talk about its detail. Also, I don't plan to talk about the
animation, I will talk about them in the Animation Widget.