Flutter can be used to create web applications, which is possible by enabling the feature. Before that I would like recommend the basic flutter setup on openSUSE post.
Lets Install Flutter for Linux development. As a open source project, we can install the flutter SDK from GitHub.
In order to clone the repository we have to use git. In case your SUSE doesn’t know what it is, let’s install it with zypper. Also recommend to have Visual Code /Atom for editing the code.
The following post may help you to install VS Code and Atom on Linux
Install the git
sudo zypper install git
Clone the repo
Get the lastest satble version from GitHub repository or alternatively can download from flutter site
git clone https://github.com/flutter/flutter.git -b stable --depth 1
Use the -b option to clone the stable version
Setup the path variable
You also need to set the path variable using the shell command as follows.
Call the Doctor
run Flutton doctor command to inspect status of your Flutter SDK
Android IOS development
For Android you have to install the Android Studio for development tool support which can be download from official website.
For official documentation visit flutter.dev
Enable web feature
Before starting make sure you have chrome/chromium installed on your system. Otherwise the feature may not work
For enabling the web feature we have to switch to the beta channel ( web feature is an experimental feature and official full support is not yet released)
flutter channel beta
flutter config --enable-web
Run the flutter device command again and then check the web feature is list or not by using
and it will list the web feature
Create sample Flutter project
flutter create myweb_app
run the app using flutter run command
flutter run -d chrome
For building the web we can use
flutter build web