DEV Community

Flutter for Desktop

Afroze Kabeer Khan. M on December 21, 2019

EDITED So with all of this cross-platform trend that is going on 🤩, Flutter is setting some greater standards compared to other frameworks. The ma...
Collapse
 
erebos-manannan profile image
Erebos Manannán

I'm sorry but this post is really poorly written. It's making a lot of weird assumptions and not explaining a lot of things in not enough detail. Add to that you've got some really weird ideas here.

Clone the repo into folder like /etc/bin for linux, or C:\Program Files\ for windows.

You should never install anything to /etc/bin, that's not a standard location, you should definitely not check out any Git repos to c:\Program Files. If you're checking out Git repos try $HOME/src or C:\Source or %USERPROFILE%\Documents\source or whatever else but do not use system folders for things they are not intended for.

Then you jump into this:

Rerun the Microsoft visual studio Build tools. Select modify option.
Then select the following components.

Rerun what? You've not explained anything about how to install it the first time. I know how to install it, you might know how to install it, many people reading this have no clue what you're talking about.

degit google/flutter-desktop-embedding desktop_app

Suddenly assuming people have installed I guess the degit NPM package globally?

It's great that you try to write guides for cool things like Flutter, but please, try and double check what you write is actually generic and explained.

Collapse
 
droidmakk profile image
Afroze Kabeer Khan. M

Thanks for pointing this out. There will be a re-edited version of this.

But since this is a binary file I think it's better to keep it in Program files folder.

Collapse
 
erebos-manannan profile image
Erebos Manannán

c:\Program files is where installers should put applications in. If there was a Flutter installer and it set up the thing, it would be appropriate for it to go under C:\Program files. You should definitely not check out Git repositories there randomly.

The common practice is to add the bin folder to your PATH when it's necessary. It's not all that much work.

One good option on Windows is to set up e.g. c:\tools and put your tools under that, downloading a release for that there would end up with e.g. C:\tools\flutter\bin to add to your path. Another option is to use %USERPROFILE% or %APPDATA%, so you end up with %USERPROFILE%\flutter\bin or %APPDATA%\flutter\bin in your path.

I've been working on the concept of a "standard development environment" incl. this kind of paths recently and should probably add something about this there 🤔

On Linux it's pretty common to use $HOME for all user owned things, if you want to make it globally available for the machine and owned by root, then e.g. /opt/flutter would be appropriate. I believe a lot of things like Android SDK get installed under /opt.

One of the important things to keep in mind with these paths is that it's actually important where your files go for the security model of the OS.

C:\Program files is supposed to not be editable with the user permissions, and require Administrator access instead just as /opt, /etc, etc. are supposed to require root access. You're not running everything as root in Linux, you shouldn't be running without UAC or everything as Administrator on Windows.

Collapse
 
borisimple profile image
Boris Krstić

Flutter is finally something that is very enjoyable for use. It's a bit different approach which works pretty well for most of the things. Team behind it seems dedicated and they are bringing solution to all kind of different screens and platforms. I could do my full time work in Flutter/Dart. Too bad there are almost no related jobs in my area. It is questionable if you should focus on it, at least at the moment, but for some reason I am pretty sure that it will have a lot of jobs in the future.

Collapse
 
droidmakk profile image
Afroze Kabeer Khan. M

That's because react-native is being adopted as people in web development can port to mobile development easily

Collapse
 
ben profile image
Ben Halpern

Flutter for desktop is definitely one of the most interesting cross platform ideas around.

Collapse
 
imhotep111 profile image
Dr Imhotep AlBasiel

This is a must-have for anybody who wants to do Android and iOS development without the hassle of learning both languages

Collapse
 
droidmakk profile image
Afroze Kabeer Khan. M • Edited

Yes, There has been a lot of space as in Cross-platform development. Flutter has been doing pretty well for a while.

Collapse
 
imhotep111 profile image
Dr Imhotep AlBasiel

Flutter is a must learn because it saves so much time you don't have to run out and learn Android or iOS just learn flutter just to get stuff done quick so it's a must I got a lot of Oxnard development and I'm planning that it's a good way for me to make money while I sleep cuz I said are hiring two extra guys I just learned flutter some of the process of packing to read right now thanks again let me know what else you're doing.