Page and flutter don't agree
Page URL
https://docs.flutter.dev/platform-integration/web/initialization/
Page source
https://github.com/flutter/website/tree/main/src/content/platform-integration/web/initialization.md
Describe the problem
I am being told this when running flutter run and chrome or flutter run -d chrome Launching lib\main.dart on Chrome in debug mode... Warning: In index.html:40: "FlutterLoader.loadEntrypoint" is deprecated. Use "FlutterLoader.load" instead. See https://docs.flutter.dev/platform-integration/web/initialization for more details.
I go to that site provided, and it still says in the example, {{flutter_js}} {{flutter_build_config}}
const loading = document.createElement('div'); document.body.appendChild(loading); loading.textContent = "Loading Entrypoint..."; _flutter.loader.load({ onEntrypointLoaded: async function(engineInitializer) { loading.textContent = "Initializing engine..."; const appRunner = await engineInitializer.initializeEngine();
loading.textContent = "Running app...";
await appRunner.runApp();
} });
This doesn't match. This should match.
Expected fix
Fix either the warning or fix the page to be the correct code example using FlutterLoader.load
Additional context
No response
I would like to fix this problem.
- [ ] I will try and fix this problem on docs.flutter.dev.