Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does flutter uses Javascript Engine kind of thing like React Native

As we know React Native uses Javascript to create native views without DOM at runtime.

Does Flutter uses same kind of logic?

like image 781
Qamar Avatar asked Apr 16 '18 07:04

Qamar


People also ask

Does Flutter use JavaScript?

Flutter JS plugin. A Javascript engine to use with flutter. Now it is using QuickJS on Android through Dart ffi and JavascriptCore on IOS also through dart-ffi. The Javascript runtimes runs synchronously through the dart ffi.

Is Flutter like JavaScript?

As an alternative to JavaScript or React Native, Google created the framework for cross-platform mobile application development. Flutter uses the Dart programming language which is not known by many developers. However, in contrast, to React Native apps, apps built with Flutter look slick and much more native.

Is Flutter similar to React JS?

Flutter and React Native share a lot of similarities, but they are also quite different in a handful of key ways. For starters, Flutter uses the Dart programming language in its codebase, whereas React Native uses JSX. Both languages are based on the C-style type of syntax and follow object-orientated principles.

Does Flutter Use React Native?

In contrast to a native mobile development approach Flutter and React Native allow the creation of a single code base that works for both iOS and Android devices. As there is less coding required, apps can be released quicker and on a smaller budget.


2 Answers

No, Flutter uses Dart compiled to native binary code. There is no JavaScript involved at all.

You can run JavaScript in a WebView plugin if you want.

Flutter builds to native binary code and renders the UI using Skia Graphics Library which is a high performance 2D graphics library that utilizes GPUs

Skia is an open source 2D graphics library which provides common APIs that work across a variety of hardware and software platforms. It serves as the graphics engine for Google Chrome and Chrome OS, Android, Mozilla Firefox and Firefox OS, and many other products.

Flutter uses its own widgets that are built from ground up in Dart. Basic widgets like gesture detection, layout, text rendering, ... are composed to more powerful reusable widgets like Material Design widgets and others.
All these widgets can be reused to compose custom widgets.
The source of all these basic and complex widgets is available and can be used to allow a level of customization composition alone might not allow.

like image 133
Günter Zöchbauer Avatar answered Sep 22 '22 05:09

Günter Zöchbauer


In Addition to @Günter Zöchbauer:

  • Flutter has beautiful sets of Widgets
  • It is easy to understand as compared to ReactNative
  • ReactNative has a difficult learning curve for mobile developers
  • Flutter is being used to build a new OS by Google called Google Fuchsia

You can also read this article.

like image 28
Arnold Parge Avatar answered Sep 22 '22 05:09

Arnold Parge