Fredrick M T Pardosi
Fredrick M T Pardosi

Reputation: 123

How to add web folders for web flutter from mobile applications that have been created

I have structure folder like this:

enter image description here

I want to display my mobile application on the web using Flutter. So, I want to add folder web for Flutter web, I have done several ways, but I did not get the solution. enter image description here

What should I do to solve this problem?

Upvotes: 3

Views: 8653

Answers (2)

use the command flutter create --platforms web .

from https://docs.flutter.dev/platform-integration/web/building

Upvotes: 1

Anil Chauhan
Anil Chauhan

Reputation: 716

Switch to the Flutter master channel and upgrade to the latest release*

Flutter channel master
Flutter upgrade

Enable the Flutter Web you haven’t already

flutter config --enable-web

Check you you got Chrome in your attached devices list

fluter devices

Create the Web platform folder in the Flutter App

flutter create .

Run on Web

flutter run -d Chrome

Flutter official resources to start with Flutter web: [https://flutter.dev/docs/get-started/web][1]

Update on 3rd May

Flutter Web is by default enabled in the latest version of Flutter you don’t need to enable the Flutter web and use the Flutter master channel either.

Upvotes: 13

Related Questions