Flutter web create issue in existing flutter app

You can add the app to the existing flutter project as well. Here are some steps that I followed

1: Create a new branch to not mess things up in existing branch if you are starting with flutter web for the first time.

2: flutter channel master

3: flutter config --enable-web: Now you may or may not see the new Dart SDK being downloaded.

4: flutter create --org package_name .: This will add the web files in your project.

5: flutter devices: You must see chrome listed now.

6: flutter run -d chrome: If you see something like project not configured for the web then try step 3 again and reopen your editor.


this worked for me. you need to specify output directory too. for the same flutterapp directory, use ./ hope this helps u :)

flutter create --org flutterappname ./

You can use this command

flutter create --org package_name .