return Scaffold(
appBar: appBar,
body: Center(
// Center is a layout widget. It takes a single child and positions it
// in the middle of the parent.
child: Column(
children: [
_kraken = WebF(
devToolsService: ChromeDevToolsService(),
viewportWidth: viewportSize.width - queryData.padding.horizontal,
viewportHeight: viewportSize.height -
appBar.preferredSize.height -
queryData.padding.vertical,
bundle: WebFBundle.fromUrl('http://10.168.50.60:8000/'),
),
],
),
),
);
W/WEBF_NATIVE_LOG(17592): Service worker not supported (or configured). {serviceWorkerVersion: '2585742326'}
D/WEBF_NATIVE_LOG(17592): Injecting <script> tag.
E/WEBF_NATIVE_LOG(17592): TypeError: not a function
E/WEBF_NATIVE_LOG(17592): at <anonymous> (http://10.168.50.60:8000/flutter.js:79:25)
E/WEBF_NATIVE_LOG(17592): at Promise (native)
E/WEBF_NATIVE_LOG(17592): at _loadEntrypoint (http://10.168.50.60:8000/flutter.js:80:30)
E/WEBF_NATIVE_LOG(17592): at _loadWithServiceWorker (http://10.168.50.60:8000/flutter.js:108:21)
E/WEBF_NATIVE_LOG(17592): at loadEntrypoint (http://10.168.50.60:8000/flutter.js:48:19)
E/WEBF_NATIVE_LOG(17592): at <anonymous> (vm://:8:23)
E/WEBF_NATIVE_LOG(17592):
I/get.webf_widge(17592): ProcessProfilingInfo new_methods=1305 is saved saved_to_disk=1 resolve_classes_delay=8000
Affected version
0.13.1+1
No same issues found
Bug type
JavaScript
Which frontend framework you are using.
flutter 3.3.9
Steps to reproduce
Code example
内容flutter run -d chrome --web-port 8888 --web-renderer=html --release
运行服务可能问题原因:JavaScript没有正常执行 浏览器正常显示后DOM的body内容会插入如下内容
Code example
FlutterWeb 工程
main.dart
webf工程
Expected results
正常显示标签内容
Actual results