Flutter Basic Language Overview


Posted December 13, 2018 by flutterappdev

Flutter is a framework to develop native interfaces for Android and iOS devices, yet you keep only one code base.
 
Flutter Basic Language Overview

Hello Everyone, I am going take a overview on Develop application for android as well as iOS application. Flutter is a mobile application SDK, complete with framework, widgets, and tools, that gives developers an easy and productive way to build and deploy beautiful mobile apps on both Android and iOS.

Flutter is Google’s mobile application SDK for high quality native interfaces on iOS and Android.

Flutter Apps are constructing in a language called Dart, Flutter Uses Dart. You have a many question in your mind. What is Dart? What does this have to do with Flutter and Dart? I am explain whole this thing. First I am take a overview on Dart Programming language.

Dart - Flutter

The early Flutter team evaluated more than a dozen languages, and picked Dart because it matched the way they were building user interfaces. Dart is a big reason why developers love Flutter. #Dart is a awesome language.

Here is a quick list of the Dart features for Flutter :-

* Dart is AOT (Ahead Of Time) compiled to fasttest, predictable, native code, which allows almost all of Flutter to be written in Dart. This not only makes Flutter fast, virtually everything can be customized.

* Dart makes it easier to create smooth animations and transitions that run at 60fps. Dart can do object allocation and garbage collection without locks. And like JavaScript, Dart avoids preemptive scheduling and shared memory (and thus locks). Because Flutter apps are compiled to native code, they do not require a slow bridge between realms (for example, JavaScript to native). They also start up much faster.

* Dart can also be JIT compiled for exceptionally fast development cycles and game-changing workflow (including Flutter’s popular sub-second stateful hot reload). JIT ((Just In Time))

* Developers have found that Dart is particularly easy to learn because it has features that are familiar to users of both static and dynamic languages.

* Dart allows Flutter to avoid the need for a separate declarative layout language like JSX or XML, or separate visual interface builders, because Dart’s declarative, programmatic layout is easy to read and visualize. And with all the layout in one language and in one place, it is easy for Flutter to provide advanced tooling that makes layout a snap.


Unified layout

Dart is that Flutter doesn’t split layout between your program and an additional templating or layout language like JSX or XML, nor does it require separate visual layout tools. Here’s a simple Flutter view, written in Dart :-


new Center(child:
new Column(children: [
new Text('Hello, World!'),
new Icon(Icons.star, color: Colors.green),
])
)


An example, here is a simple list layout that adds a divider (horizontal line) between every other item, defined programmatically :-


return new ListView.builder(itemBuilder: (context, j) {
if (j.isOdd) return new Dividerr();
// rest of function code
});


Stay connect with next part number 2 article.

Conclusion

In Flutter layouts is define with use of Dart code only. There are no XML - templating language. There is no visual designer - storyboarding tool either or not.
A number of you might even cringe a little. That was my reaction too, Would not write all kinds of constraint logic in code make things overly complicated???? I can’t stress enough. It just works - even on large non-trivial apps. And it is crazy fast. That is the power of Dart for you.

Read More : http://flutterappdev.com
-- END ---
Share Facebook Twitter
Print Friendly and PDF DisclaimerReport Abuse
Contact Email [email protected]
Issued By flutterappdev
Country India
Categories Computers , Software , Technology
Tags android mobile app development , dart programming language , flutter , flutterio , ios mobile app development
Last Updated December 13, 2018