Cornelius Crumity is a professional home matchmaker.

Cornelius Crumity is a professional home match maker who has been helping people find their perfect homes for years. He has an extensive knowledge of the real estate market and can help you narrow…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Introduction to widgets

Flutter is an app SDK for building high-performance, high-fidelity apps for iOS, Android, from a single code base.

Flutter plugins provide you with code completion, syntax highlighting, widget editing assists, run & debug support, and more.

Flutter is a tool used to build the hybrid application which means it can support both android and iOS

Here flutter is like a Framework and the Dart is a programming knowledge.

Install Android Studio

Android Studio offers a complete, integrated IDE experience for Flutter.

Install the Flutter and Dart plugins

File Structure:

When we open any Flutter application in any IDE, we get the following screen

Here in this image ex: newapp is the section where it shows the Name of our application. This is the main section on which any Flutter app developer will work on.

Info.plist:

It just like AndroidManifest, this file contains essential information about the application which is required by iOS SDK.

Lib:

fig 1.3 lib file

This is the main folder where we have to write all our code for the application, the default project template currently only contains main.dart file which is kind of an entry point for the Flutter application. We will start creating the multiple screens and according to some design patterns.

Using packages

Flutter supports using shared packages contributed by other developers to the Flutter and Dart ecosystems.

Pubspec.yaml:

fig 1.4 pubspec.lock

This is one type of folder in flutter file structure. This folder we are adding the external plugin

1. Open the pubspec yaml file located inside the app folder

2. Once we place the Package inside this folder

3. Then we need to install it by clicking on the “Packages get” in the folder

4. When we need that package then we should import that package name

Package Conflict resolution:

Note: we have a particular place to put the packages in pubspec.yaml file. In the file we have the Dependencies area were we can place for required package …

The above is the dependency structure present in pubspec.yaml file ..

we need to add the package like give below

Flutter widgets are built using a modern framework.

It has four Layout widgets

Platform independent / basic widgets

Flutter provides large number of basic widgets to create simple and complex user interface.

Text:

It is a kind of widget used to display a piece of string.The style of the string can be done by using style property .

we have some of the properties of text are:

Image:

Image widget is used to display an image in the application.Image widget provides different ways to load images from different sources.

The easiest way to load and display an image in Flutter is by adding the image as assets of the application and load it into the widget on demand. For this we should some of the steps:

fig 1.5 show to add the imges

The most important properties of the Image widget are as follows −

Icon:

Icon widget is used to display an icon from a font described in IconData class

For the icon we change the color and size

Add a comment

Related posts:

Types Of Theatre Or Film Directors

The above conversation was something my director friend had experienced while visiting a theatre studio a few years ago. He had been using the studio to conduct his rehearsals for any of his upcoming…

Songwriter as a career

All the work begins with an idea, a theme! Sometimes we can “see” things differently of most of the people. One conversation, an argue, an accident, a pregnancy, a common expression or even a bird…

How to Reduce the Size of an Electron App Installer

Size matters sometimes. Even in the era of a fast Internet connection, the time wasted to download a software installer inevitably leads to a drastic loss in revenue because of the part of users who…