I have recently switched back from Ubuntu to Windows with Windows Subsystem for Linux using Ubuntu. I want to get in touch with Flutter and would like to be able to use the bash for the Flutter-commands while developing on Windows. Is that possible or should I just install everything for Windows?.
Flutter provides support for compiling a native Windows, macOS, or Linux desktop app. Flutter's desktop support also extends to plugins—you can install existing plugins that support the Windows, macOS, or Linux platforms, or you can create your own.
WSL also allows you to run Linux command-line tools and apps alongside your Windows command-line, desktop and store apps, and to access your Windows files from within Linux. This enables you to use Windows apps and Linux command-line tools on the same set of files if you wish.
Linux is improving rapidly but most game developers still target the Windows audience. For corporate networks Windows is best. It just integrates better and most LoB applications are designed for Windows. Also the Office suite is unparalleled.
I tried multiple ways to use flutter with WSL as there is no official way provided.
Restrictions I faced:
I always prefer installing things on windows and running them on WSL. I just modified the commands a bit and now it works great. I added the following in my .bashrc
:
alias winpro='cd /mnt/<DIRECTORY IN WINDOWS YOU WANT>'
flutter() {
command CMD.exe /c flutter $@
}
Now you can use winpro to shift to windows and flutter will work as usual in WSL.
(Detailed: https://www.yashlamba.com/blogs/1/)
Flutter - Windows
Android Studio + Emulators - Windows
Execute on bash:
cmd.exe /c flutter run
Image
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With