W
W
Wylaroren2021-06-19 10:55:58
Dart
Wylaroren, 2021-06-19 10:55:58

What is the maximum number of device types and operating systems that can be supported by writing an application in Dart+Flutter as of June 2021?

Gathering information to make a decision on whether to invest my time in learning the Dart language and the Flutter framework. I know that at the moment there is no technology that allows you to write a single source code for one application that will run on all popular operating systems (Windows, MacOS, Linux, iOS, Android) and devices (computers, tablets, smartphones). But I am willing to invest time in the technology that comes closest to this goal.

I emphasize that in this matter I am interested in the creation of native, but not web applications.

JavaFX has already disappointed me. Very few teaching materials. They often write articles like "Write applications in JavaFX!", praise it, and then only show how to change the background color of a button, and how to create modern multi-page applications - well, it's not clear from the articles, I haven't even seen paid video courses yet. To do some elementary things, you have to search for information for a long time, and it often turns out that this is impossible in JavaFX ( example ).

What information have I collected

Full support for building web apps is available in version 2.0 (March 2021), and support for building desktop apps for Windows, macOS and Linux and Google Fuchsia (in a Dart virtual machine with a JIT compiler) is also in development.
Wikipedia


I don’t know if new features were introduced according to the plan, but the answer to the main question is clear from here - even if Flutter supports all this (Windows, macOS, Linux, Android, iOS), will the application have a single code, or will the application need a difference for several projects under different OS will it still be saved?

A cross-platform framework that allows you to write applications for everything that has a screen. Literally. With this tool, applications will be fast and development much more productive.
TProger


Sounds encouraging, but the answer to my question is no. It may be possible to write, but is it possible to have one source code per application for everything that has a screen?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-06-19
@vabka

It may be possible to write, but is it possible to have one source code per application for everything that has a screen?

Code that is independent of the platform, under a normal architecture, will be generic.
Some will be specific to platforms - you will have to write it for each platform, unfortunately they have not yet invented a common approach
. For example, if you have a different interface for different devices, or want to use some feature like FaceID.
https://flutter.dev/docs/development/platform-inte...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question