| 858 views

Flutter Swipe Tabs with Cards Tutorial

This is a flutter Swipe Tabs tutorial. How to switch through cards containing images by swiping forward or backwards or clicking the tabs.

| 89 views

Dart is designed to allow write modular programs.This makes Dart programs maintainable as well as shareable with other developers.

Dart provides two directives that allow us achieve this: import and library.

Libraries in Dart due to the two main functions they perform :

  1. Provision of APIs.
  2. Acting as a unit of privacy. This is achieved by prefixing identifiers with an underscore (_). This makes them visible only inside the library. Every Dart app is a library, even if it doesn't use a library directive.

The libraries can then be distributed under packages.

| 92 views

Dart is a general purpose, open-source, developer-friendly programming language for creating structured applications.

Dart was first announced as a public preview on October 10, 2011.

Dart v1.0, the first production release, came out on November 14, 2013.

Not only is Dart a language but also a platform that provides libraries, an editor, a virtual machine (VM), a browser that can run Dart apps natively, and a compiler to JavaScript.

Dart's syntax will look surprisingly familiar to developers coming from languages like C# and especially Java.

Dart takes the best features of the statically typed "Java-C#" world and combines these with features more commonly found in dynamic languages such as JavaScript, Python, and Ruby.

Dart fast rising in popularity because of many it's modern features but especially these two stand out:

  1. Performance - Dart designers are famously knowm to have revolutionized Javascript performance after their work on V8 engine for chrome. This implies they know how to build a language for performance. A more structured language is easier to optimize, and a fresh VM enables improvements such as faster startup.

  2. Developer Productivity: Dart has a uniquely convenient support for libraries and packages in a way that honestly allows developers work with each other and easily reuse code from other projects. Dart also has inbuilt support for Types which help by making APIs clearer and easier to use. Moreover there are tools that allow you to refactor, navigate, and debug code.
| 2769 views

Flutter GridView Tutorial and Example.

We will see how to render items in a GridView in this tutorial and how to handle item click events.

| 220 views

Android MaterialPreferences Tutorial and Example

In this class we want to explore then look at example of MaterialPrefences library. We look at what it is, why it's important and an example.

| 260 views

Android SharedPreferences Tutorial and Examples.

In this tutorial we want to look at SharedPreferences, what it is, why it's important and several examples.

| 145 views

An ArrayList is a Resizable-array implementation of the List interface.

This class is one of the most commonly used collection in the java environment. It's so flexible and easy to use and powerful. It's power and flexibility come from the fact that ArrayList implements all optional list operations, and permits all elements, including null.

Internally an ArrayList utilizes an Array to store it's items. Because of this some developers usually refer to an ArrayList as a dynamic array.

Hence the ArrayList class provides methods to manipulate the size of the array that is used internally to store the list.

| 112 views
XML

XML in full is eXtensible Markup Language.

By definition it is a metalanguage for defining custom markup languages, otherwise known as vocabularies. A metalanguage is a language we use for defining other languages.

XML is very important and popular to the computer science field and this ability to define vocabularies is the key.

So Applications use XML documents to:

  1. Store Data.
  2. Exchange data.

Through XML we can define rules for encoding documents that is both human readable and machine-readable.

There are many XML vocabularies but the most common one is the HTML.

XML documents are text-based and comprise markup and content. A markup is the encoded descriptions of a document's logical structure. The content is the document text that is not interpreted as markup.

| 161 views

In Java List is an interface representing an ordered collection (also known as a sequence).

As an interface you cannot directly instantiate List<E>, instead it is there to be implemented by classes, which may then be instantiated.

And infact many important classes like the ArrayList either directly or indirectly implement this interface.

Then those implementers get precise control over which position an element is inserted. Afterwards you can access elements by their integer index (position in the list), and also search for elements in the list.

Lists can allow duplicate elements. If you don't want duplicates then it is recommended you use Set.

The List interface places additional stipulations, beyond those specified in the Collection interface, on the contracts of the iterator, add, remove, equals, and hashCode methods. Declarations for other inherited methods are also included here for convenience.

The List interface provides four methods for positional (indexed) access to list elements. Lists (like Java arrays) are zero based. Note that these operations may execute in time proportional to the index value for some implementations (the LinkedList class, for example). Thus, iterating over the elements in a list is typically preferable to indexing through it if the caller does not know the implementation.

The List interface provides a special iterator, called a ListIterator, that allows element insertion and replacement, and bidirectional access in addition to the normal operations that the Iterator interface provides. A method is provided to obtain a list iterator that starts at a specified position in the list.

The List interface provides two methods to search for a specified object. From a performance standpoint, these methods should be used with caution. In many implementations they will perform costly linear searches.

The List interface provides two methods to efficiently insert and remove multiple elements at an arbitrary point in the list.

| 618 views

Flutter CupertinoDialog Tutorial and Examples.

In this tutorial we want to look at a popular style of dialog in flutter called CupertinoDialog.