How to add Icon Button to AppBar in Flutter

AppBar is an important UI component in a mobile app. In this Flutter tutorial, let’s learn how to add an icon button to AppBar. The AppBar has actions property which allows displaying a list of widgets in a row after the title. We use actions to add IconButton. We also show a Snackbar when the … Read more

How to set Gradient Background for AppBar in Flutter

Gradients created with multiple colors always make UI components more attractive. Let’s learn how to add AppBar with a gradient background in Flutter. The flexibleSpace property helps to add widgets to customize AppBar. Using BoxDecoration and LinearGradient you can create a gradient background. See the code snippet given below. Following is the output of AppBar … Read more

How to set Background Image for AppBar in Flutter

AppBar is one of the most used widgets in Flutter. It is also highly customizable. In this Flutter tutorial, let’s learn how to show an AppBar with an image background. First, you must add an image to your project and mention it in the pubspec.yaml file. The AppBar has a property named flexibleSpace and it … Read more

How to make Flutter AppBar Transparent

Transparency is often used in mobile app design to create visually appealing Ul elements. Let’s learn how to make AppBar transparent in this Flutter tutorial. AppBar has backgroundColor property to change the background color. We apply Colors.transparent as the background color. The next thing is to make elevation property zero so that the shadows because … Read more

How to change AppBar Title Color in Flutter

AppBar is one of the important UI components of material design. In this short and simple Flutter tutorial, let’s check how to change the default AppBar title color. The AppBar widget uses a Text widget to add the title. Hence, we can make use of the TextStyle class to change the color of the title. … Read more

How to change AppBar Height in Flutter

AppBar is one of the most important widgets in Flutter. It helps developers to set a sticky toolbar at the top of each screen. Let’s check how to change the default height of AppBar in Flutter. Changing the height of AppBar is easy. You just need to use toolbarHeight property of AppBar. See the code … Read more

How to change AppBar Elevation Color in Flutter

Elevation has an important role in material design. It helps to create a shadow according to the elevated distance. In this Flutter tutorial, let’s learn how to change the AppBar elevation color. The AppBar widget has an elevation property through which you can apply elevation to the AppBar. If you want to change the default … Read more

How to change AppBar Elevation in Flutter

Everyone knows the importance of elevation in material design. An increase in elevation increases the shadow of the element. In this Flutter tutorial, let’s learn how to change the default elevation of AppBar. AppBar has so many properties for customizing its content. One among them is elevation. You can specify the desired value to change … Read more

How to change AppBar Background Color in Flutter

The AppBar is the top most widget that can be seen by the user. The background color of the AppBar is applied according the colors given in ThemeData. In this Flutter tutorial, let’s learn how to change the AppBar background color by overriding the default theme color. The AppBar widget has a property named backgroundColor … Read more

How to Align AppBar Title to Center in Flutter

The AppBar widget appears at the top of each screen in a Flutter app. The title of AppBar is aligned to left by default in Android devices. Let’s check how to align AppBar text to the center in Flutter easily. The AppBar class has a property title to add text. You can align this text … Read more