How to add web/desktop support for existing flutter app in OpenSUSE


Have flutter project in hand which is built for Android and iOS, now want to built desktop and web counter part?

Make sure that you have enabled, web, desk features. To ensure this run the following

Flutter devices

If not please go through the web/desk support post.

How to enable Flutter Web support in Ubuntu Linux - How to enable Flutter Web development in Ubuntu Linux
How to enable Flutter Desktop support in Ubuntu Linux - How to setup Flutter Desktop development environment on Ubuntu

Here is the solution

Make sure you had an active internet connection.

Cd to your project folder and in the console enter these commands

For few second it will add tools for desktop and web features.

Flutter create . 

Run the flutter command

Flutter run -d chrome

Flutter will goes through building process and will bring you a local host id.

For desk top try to run

Flutter run -d windows/linux/mac 

Published by

Manoj

A developer,teacher and a blogger obsessed with Python,Dart and open source world from India

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.