Open
Description
Steps to reproduce
- Follow the documentation for writing a Custom Web Initialization
- Write an initialization with a different entrypoint base url.
_flutter.loader.load()
takes aconfig
object withentryPointBaseUrl
(camelCase)_flutter.loader.load()
takes a second argument foronEntrypointLoaded
(lowercase)- Using the lowercase notation as parameter for
entrypointBaseUrl
would not run the app.
Expected results
I would expect everywhere to use the same case. It seems like the correct word is "entrypoint" (lowercase) and the entryPointBaseUrl
is the only one to break this.
Actual results
We need to use different notations for these parameters which very confusing. If you use entrypointBaseUrl
the app would not load and it doesn't provide a clear error about this. Since JS lacks compile-time checking, this is hard to spot.
Code sample
Code sample
_flutter.loader.load({
config: {
entryPointBaseUrl: appUrl, // entryPoint (camelCase notation)
},
onEntrypointLoaded: async (engineInitializer) => { // entrypoint (lowercase notation)
const engine = await engineInitializer.initializeEngine({
assetBase: appUrl,
multiViewEnabled: true,
});
window._ourApp = await engine.runApp();
},
});
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]
Flutter Doctor output
Doctor output
[✓] Flutter (Channel beta, 3.32.0-0.4.pre, on macOS 15.4.1 24E263 darwin-arm64, locale en-BE) [657ms]
• Flutter version 3.32.0-0.4.pre on channel beta at /Users/fre/fvm/versions/beta
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision dbc3660e84 (6 days ago), 2025-05-09 13:35:12 -0700
• Engine revision 38e19d01dc
• Dart version 3.8.0 (build 3.8.0-278.4.beta)
• DevTools version 2.45.1
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0-rc4) [3.2s]
• Android SDK at /Users/fre/Library/Android/sdk
• Platform android-35, build-tools 35.0.0-rc4
• ANDROID_HOME = /Users/fre/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
• Java version OpenJDK Runtime Environment (build 21.0.4+-12422083-b607.1)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 16.3) [1,347ms]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16E140
• CocoaPods version 1.16.2
[✓] Chrome - develop for the web [149ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2024.2) [148ms]
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.4+-12422083-b607.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2024.3.1) [147ms]
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 83.0.4
• Dart plugin version 243.23177
[✓] IntelliJ IDEA Community Edition (version 2024.3.4.1) [60ms]
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 83.0.4
• Dart plugin version 243.23654.44
[✓] VS Code (version 1.100.0) [13ms]
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.110.0
[✓] Connected device (3 available) [7.0s]
• iPhone SE (wireless) (mobile) • 00008110-000E7901349B801E • ios • iOS 18.4.1 22E252
• macOS (desktop) • macos • darwin-arm64 • macOS 15.4.1 24E263 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 136.0.7103.114
[✓] Network resources [649ms]
• All expected network resources are available.
• No issues found!