Dart static Keyword

The static keyword is used to declare the class variable and method. It generally manages the memory for the global data variable. The static variables and methods are the member of the class instead of an individual instance. The static variable or methods are the same for every instance of the class, so if we… Continue reading Dart static Keyword

Dart this Keyword

The this keyword is used to refer the current class object. It indicates the current instance of the class, methods, or constructor. It can be also used to call the current class methods or constructors. It eliminates the uncertainty between class attributes and the parameter names are the same. If we declare the class attributes… Continue reading Dart this Keyword

What is constructor?

A constructor is a different type of function which is created with same name as its class name. The constructor is used to initialize an object when it is created. When we create the object of class, then constructor is automatically called. It is quite similar to class function but it has no explicit return… Continue reading What is constructor?

Dart Classes and Object

Dart classes are the blueprint of the object, or it can be called object constructors. A class can contain fields, functions, constructors, etc. It is a wrapper that binds/encapsulates the data and functions together; that can be accessed by creating an object. A class can refer to as user-define data type which defines characteristics by… Continue reading Dart Classes and Object

Dart Object-Oriented Concepts

Dart is an object-oriented programming language, and it supports all the concepts of object-oriented programming such as classes, object, inheritance, mixin, and abstract classes. As the name suggests, it focuses on the object and objects are the real-life entities. The Object-oriented programming approach is used to implement the concept like polymorphism, data-hiding, etc. The main… Continue reading Dart Object-Oriented Concepts

Simple Present Tense

Simple Present Tense is one of the forms of verb tenses that refers to the present time. We will see its formula and usage with examples. Let’s start with the definition! Definition Simple present tense also called present indefinite tense, is used to express general statements and describe usual or habitual actions. In simple words, we can… Continue reading Simple Present Tense

Display a SnackBar

SnackBar gives a brief message at the bottom of the screen on mobile devices and lower-left on larger devices and gets confirmation from the user. The snack bar automatically disappears after a certain amount of time. Here, we are going to learn how we can implement a snack bar in Flutter. In Flutter, the snack bar only works with… Continue reading Display a SnackBar

Published
Categorized as 7. Tabbar

Tabbar Step 6:

Step 6: Finally, open the main.dart file and insert the following code Output Now, run the app in your Android Studio. It will give the following screen where you can see two tab icons. So when you click any of the tab icons, it will display the associated screen.

Published
Categorized as 7. Tabbar

Tabbar Step 3, 4 and 5:

Step 3: Next, we need to create a DefaultTabController. The DefaultTabController creates a TabController and makes it available to all widgets.   In the above code, the length property tells about the number of tabs used in the app. Step 4: Create the tab. We can create tabs by using the TabBar widget as below code. Step 5: Create content for each tab so that when… Continue reading Tabbar Step 3, 4 and 5:

Published
Categorized as 7. Tabbar

Flutter Tabbar

In this section, we are going to learn how the tab bar works in Flutter. The tabs are mainly used for mobile navigation. The styling of tabs is different for different operating systems. For example, it is placed at the top of the screen in android devices while it is placed at the bottom in… Continue reading Flutter Tabbar

Published
Categorized as 7. Tabbar