Hello, in this video, I am going to go into more depth for the app bar. So if we go to our application, this little top part here is the bot. So this is part of the scaffold class and the app bar. So far, we just have a text item, which is this right here, and we have the background color, which is set based on on this theme, but the color itself can be overridden. So if we go into the property that we can add controls by, you can see all and you can change the brightness, the opacity, you can change the lead in only to have a go at doing that. And I will provide a link so you can get information about all of this extra stuff.
But what we can also do which is really cool is that actions that we should basically buttons and do that by just putting in was already on the right one clearly actions code on angle brackets widget code on Square angle brackets, and square brackets. And then in here, you basically put your widgets, you can put whatever widget you want. But what I'm going to do, because you could put, you know, a text item, so you could have images in the app, but there's a built in icon so you can do icon button. And in here, we need an icon to icon and the icon constructor, and go to icon, dot. And here are all of the different icons that you can leverage. There are a lot I computed.
One of the things I love about flutter, and also Android Studio, one Android Studio show the preview so you can actually see what they look like. They're constantly having to switch the mess and get a rough idea. And to the left, so many built in. So if I go seven, the call to do something regarding it. And yeah, that's Yeah, let's do this one. So Okay, now I'm gonna do something else.
Let's do a call one call. Again, we're not adding any call functionality, but you'll see and I'll explain why I've chosen this one, then you can add a tooltip. And for the tooltip, I'm gonna say, contact. And you know, you can see all the other properties while regarding alignment, you know, the disabled color, the highlight color, the regular color, the one we want to do is on crest, and this will basically call a particular method. So I added this before don't need that. But we can say, call contact.
It's red because there's no method called called contact but he has a void. on tap. And in here, we can print to say saved. And as you can see, we have a cold button. So imagine if this was the page for our contacts, we could know how about hot buttons here that are just generic to each contact. And if I click it, as you can see it says cooling contact for click it again, says calling contact.
Obviously, the functionality that you want to implement is totally up to you. And yes, you probably already be wondering, can you add multiple icons? Yes, you can. So the process is exactly the same at the end of the day. This is a widget array, so you can add as many widgets as you want. So you could add in a text item, it's gonna stick with icon because they look really nice.
And so for this one, I'm going to put instead of cool also, so like if we want to add some more information for the contact information on top Well, some say info to contact, save some time off, copy this, I'll go here. And I'm saying add info, adding info. So for that, let's see what we get. So we got both of the buttons. So the first icon added will be to the left most area and the next icon it will be to the right and so forth. If I click the Add button, it calls the adding input contacts.
So the on press is like calling any of the methods so you can, you know, pass in parameters if you want to as well. So that's really it for the app bar. Like I said, there are other property that you can no use. You can use, you know, like background, muscle color, the opacity, the leading the, you know, the actual To the TextView, a whole heap of stuff and as an extra test, I recommend that you tweak all of this. If you have any questions, feel free to drop me a message and illegal. I look forward to seeing you in the next video.