flutter/packages/flutter_tools/lib/src
Srivats Venkataraman 5fd17bccff
Changes message when web folder is not present (#165084)
This PR addresses: https://github.com/flutter/flutter/issues/164921

The old message for when the web folder wasnt present and a build for
web command was executed the following message was thrown:
```Missing index.html.```

The new message is going to be:

```Run flutter create . --platforms web```

<img width="1087" alt="Screenshot 2025-03-12 at 5 16 15 PM"
src="https://github.com/user-attachments/assets/0676083e-03a5-4bea-afac-8321eb9358f9"
/>
<img width="1440" alt="Screenshot 2025-03-12 at 5 33 15 PM"
src="https://github.com/user-attachments/assets/4eab879c-23d8-4bd0-b08a-a5728009a943"
/>

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [x] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [x] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [x] I signed the [CLA].
- [x] I listed at least one issue that this PR fixes in the description
above.
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [x] I followed the [breaking change policy] and added [Data Driven
Fixes] where supported.
- [x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel
on [Discord].

<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview
[Tree Hygiene]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md
[test-exempt]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests
[Flutter Style Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md
[Features we expect every widget to implement]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement
[CLA]: https://cla.developers.google.com/
[flutter/tests]: https://github.com/flutter/tests
[breaking change policy]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes
[Discord]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md
[Data Driven Fixes]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md
2025-04-28 13:19:00 +00:00
..
android Android doctor: more robust canrun (#167489) 2025-04-21 18:10:20 +00:00
base iOS: Update minimum iOS version to 13.0 (#167737) 2025-04-24 20:15:13 +00:00
build_system iOS: Update minimum iOS version to 13.0 (#167737) 2025-04-24 20:15:13 +00:00
commands Changes message when web folder is not present (#165084) 2025-04-28 13:19:00 +00:00
custom_devices Add buildMode, icuDataPath and engineRevision interpolations for custom devices (#164455) 2025-04-09 16:22:33 +00:00
dart Allow dart pub deps --json to fail without causing an explicit crash. (#166778) 2025-04-09 01:53:02 +00:00
debug_adapters Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
drive Align web terminal messages with the VM (#163268) 2025-02-14 19:57:53 +00:00
intellij fix(doctor): add an alternative path for the Dart plugin (#163215) 2025-03-18 09:35:34 +00:00
ios iOS: Update minimum iOS version to 13.0 (#167737) 2025-04-24 20:15:13 +00:00
isolated [native assets] Roll dependencies (#167287) 2025-04-16 19:10:40 +00:00
linux Fix flutter doctor usage of eglinfo in failure cases. (#164334) 2025-02-28 13:07:55 +00:00
localizations Handle missing placeholders in gen-l10n, add a regression test. (#166867) 2025-04-10 01:28:40 +00:00
macos [iOS/macOS] Add Xcode error if dev dependencies are incorrect (#165916) 2025-04-11 19:34:38 +00:00
migrations Fix ISSUE_TEMPLATE Ordering: 10 < 9, but 10 > 09 (#166455) 2025-04-03 00:24:34 +00:00
proxied_devices 🔊 [tool] Add a wirelessly connected device name as displayName (#160497) 2025-01-10 20:51:34 +00:00
reporting Finish removing null-safety mode, checks, and reporting. (#163153) 2025-02-12 21:52:02 +00:00
runner Throw an error if --local-engine-host is used without --local-engine (#166948) 2025-04-18 17:00:57 +00:00
test Add --ignore-timeouts flag for flutter test command (#164437) 2025-04-01 14:17:20 +00:00
tester Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
vscode [flutter_tools] Fix VS Code package.json path on macOS with case-sensitive file system (#163409) 2025-03-28 16:35:15 +00:00
web Remove unnecessary cache busting mechanism in hot restart (#166295) 2025-04-02 21:38:23 +00:00
widget_preview [ Widget Preview ] Add support for theme and brightness properties on Preview (#167001) 2025-04-15 17:51:40 +00:00
windows remove more (simple) usage of package:usage (#162354) 2025-01-30 18:09:19 +00:00
application_package.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
artifacts.dart When using --local-web-sdk, use a locally built Dart SDK if one is available (#166732) 2025-04-16 19:09:23 +00:00
asset.dart Remove legacy scenec stuff from flutter_tool (#163569) 2025-02-21 17:41:02 +00:00
build_info.dart [iOS/macOS] Add Xcode error if dev dependencies are incorrect (#165916) 2025-04-11 19:34:38 +00:00
bundle_builder.dart Remove legacy scenec stuff from flutter_tool (#163569) 2025-02-21 17:41:02 +00:00
bundle.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
cache.dart Fix ISSUE_TEMPLATE Ordering: 10 < 9, but 10 > 09 (#166455) 2025-04-03 00:24:34 +00:00
cmake_project.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
cmake.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
compile.dart Fix casing of error when Dart compiler is interrupted (#167520) 2025-04-22 20:50:19 +00:00
compute_dev_dependencies.dart Allow dart pub deps --json to fail without causing an explicit crash. (#166778) 2025-04-09 01:53:02 +00:00
context_runner.dart Added emulator version to doctor (#167236) 2025-04-16 19:05:48 +00:00
convert.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
daemon.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
desktop_device.dart Remove the last vestiges of null-unsafety in flutter_tools. (#164026) 2025-02-27 16:31:22 +00:00
devfs.dart [flutter_tool] Handle RPCErrorKind.kConnectionDisposed (#164299) 2025-03-27 08:51:38 +00:00
device_port_forwarder.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
device_vm_service_discovery_for_attach.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
device.dart Remove the last vestiges of null-unsafety in flutter_tools. (#164026) 2025-02-27 16:31:22 +00:00
devtools_launcher.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
doctor_validator.dart [ flutter_tool ] Fix flakiness in doctor_test.dart (#161917) 2025-01-20 21:34:29 +00:00
doctor.dart [ flutter_tool ] Fix flakiness in doctor_test.dart (#161917) 2025-01-20 21:34:29 +00:00
emulator.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
features.dart Enable --explicit-package-dependencies by default. (#160289) 2025-02-21 19:25:16 +00:00
flutter_application_package.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
flutter_cache.dart Start using bin/cache/engine.{stamp|realm} instead of bin/internal/engine.{realm|version}. (#164352) 2025-03-02 00:54:33 +00:00
flutter_device_manager.dart Revert the preview-device feature, tests, and code that only existed for it. (#162835) 2025-02-08 01:03:25 +00:00
flutter_features.dart Revert the preview-device feature, tests, and code that only existed for it. (#162835) 2025-02-08 01:03:25 +00:00
flutter_manifest.dart Make coverage collection aware of workspaces (#166389) 2025-04-06 22:27:08 +00:00
flutter_plugins.dart iOS: Update minimum iOS version to 13.0 (#167737) 2025-04-24 20:15:13 +00:00
flutter_project_metadata.dart Tweak language post-merge of #160695. (#160876) 2024-12-27 21:30:57 +00:00
globals.dart Remove the last vestiges of null-unsafety in flutter_tools. (#164026) 2025-02-27 16:31:22 +00:00
http_host_validator.dart [ flutter_tool ] Fix flakiness in doctor_test.dart (#161917) 2025-01-20 21:34:29 +00:00
license_collector.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
mdns_discovery.dart Don't throw on error for mDNS when searching for Dart VML url on core devices (#167135) 2025-04-16 22:46:13 +00:00
native_assets.dart [native assets] Rewrite install names for relocated native libraries (#153054) 2024-08-29 14:51:23 +00:00
persistent_tool_state.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
platform_plugins.dart Removes dev dependencies from generated plugin registrant for non-Android platforms (#161828) 2025-01-30 17:51:07 +00:00
plugins.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
pre_run_validator.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
project_validator_result.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
project_validator.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
project.dart Add kotlin compatability to build file validation (#167143) 2025-04-18 16:32:08 +00:00
protocol_discovery.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
proxy_validator.dart [ flutter_tool ] Fix flakiness in doctor_test.dart (#161917) 2025-01-20 21:34:29 +00:00
resident_devtools_handler.dart [flutter_tools] Call reassemble with DWDS 24.3.7 and update hot reload and restart analytics (#165006) 2025-03-12 15:16:49 +00:00
resident_runner.dart Remove legacy scenec stuff from flutter_tool (#163569) 2025-02-21 17:41:02 +00:00
run_cold.dart Align web terminal messages with the VM (#163268) 2025-02-14 19:57:53 +00:00
run_hot.dart [ Hot Restart ] Fix possible hang due to unhandled exception in UI isolates on hot restart (#165693) 2025-03-26 16:50:07 +00:00
template.dart Bump flutter_template_images to remove TODO. (#160917) 2024-12-27 22:15:54 +00:00
tracing.dart Remove outdated ignores (#162773) 2025-02-06 18:40:25 +00:00
update_packages_pins.dart [native assets] Roll dependencies (#167665) 2025-04-24 15:16:13 +00:00
version.dart Add FlutterVersion.engineCommitDate, helps signal engine artifact SHA issues (#163652) 2025-02-20 16:31:29 +00:00
vmservice.dart Delete some verbose vm service logging (#162709) 2025-03-28 13:43:13 +00:00
web_template.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
xcode_project.dart [iOS/macOS] Add Xcode error if dev dependencies are incorrect (#165916) 2025-04-11 19:34:38 +00:00