Reputation: 123
I have structure folder like this:
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.
What should I do to solve this problem?
Upvotes: 3
Views: 8653
Reputation: 124
use the command flutter create --platforms web .
from https://docs.flutter.dev/platform-integration/web/building
Upvotes: 1
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