Flutter Tutorial by Zakaria Bin Abdur Rouf

Flutter is an open-source UI software development kit (SDK) or framework developed by Google. Its primary purpose is to enable developers to build natively compiled, multi-platform applications from a single codebase.

In this article I will share my experience with the development and will also share the same issue that I faced.

I was facing a problem to deploy release version of windows. So, the first thing I noticed that the distributable file was a debug mode file. So, I enabled the developer mode in windows and run the below command.

flutter clean

start ms-settings:developers

flutter build windows

Find the exe in the below folder

\build\windows\x64\runner\Release

How to build for web:

I thought this would be easy but it was not working. I tried to Build for Web but not working in chrome.

flutter create . –platforms web
dart pub global activate webdev
webdev build
flutter build web –wasm

—-

Added below in pubspec.yaml

dev_dependencies:
  # Web compilation tools go here.
  build_runner: ^2.4.0
  build_web_compilers: ^4.0.4
---

Finally did below
Build->Flutter->Build Web
Updated the href in the index.html 


 

Add a Comment

Your email address will not be published. Required fields are marked *