Mindblown: a blog about philosophy.

  • 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…

  • 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…

  • 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…

  • 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.

  • 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…

  • 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…

  • Dart Packages

    Dart package is the collection of a well-organized, independent, and reusable code unit. Applications might be needed to implement third-party libraries or packages. The package generally contains a set of classes, functions, or unit of code for specific tasks along with the compiled program and sample data. Dart provides an extensive set of default packages…

  • Dart Generics

    Dart Generics are the same as the Dart collections, which are used to store the homogenous data. As we discussed in the Dart features, it is an optionally typed language. By default, Dart Collections are the heterogeneous type. In other words, a single Dart collection can hold the values of several data types. However, a Dart…

  • Dart Collection

    Dart doesn’t support the array to store the data, unlike the other programming language. We can use the Dart collection in place of array data structure. We can enable the other classes of the collection in our Dart script by using the dart::core library. Dart collection can be classified as follows. Dart Collection Description List…

  • Dart Metadata

    The Dart Metadata is used to specify the Dart program with additional information. It usually starts with @ symbol, followed by either a reference of the compile-time constant or a call to a constant constructor. Creating Metadata Annotation In Dart, we can define our own metadata annotations. Let’s understand the following example – Example –…

Got any book recommendations?