-
-
Notifications
You must be signed in to change notification settings - Fork 144
Description
Affected version
0.16.1
Flutter versions
3.24.0
No same issues found.
- Yes, I search all issues but not found.
Steps to Reproduce
Following the README example and launching Flutter on macOS will result in some errors:
../../../../.pub-cache/hosted/pub.flutter-io.cn/webf-0.16.1/lib/src/launcher/controller.dart:161:7: Error: The non-abstract class 'WebFViewController' is missing implementations for these members:
these members:
- WidgetsBindingObserver.didChangeViewFocus
Try to either - provide an implementation,
- inherit an implementation from a superclass or mixin,
- mark the class as abstract, or
- provide a 'noSuchMethod' implementation.
class WebFViewController implements WidgetsBindingObserver {
^^^^^^^^^^^^^^^^^^
../../../../flutter/packages/flutter/lib/src/widgets/binding.dart:335:8: Context: 'WidgetsBindingObserver.didChangeViewFocus' is defined here.
void didChangeViewFocus(ViewFocusEvent event) { }
^^^^^^^^^^^^^^^^^^
Target kernel_snapshot_program failed: Exception
Command PhaseScriptExecution failed with a nonzero exit code
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Flutter Assemble' from project 'Runner')
** BUILD FAILED **
Error: Build process failed
Code example
void main() {
WidgetsFlutterBinding.ensureInitialized();
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({
super.key,
});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return const MaterialApp(
title: 'Flutter Demo',
home: Webview(url: "https://www.wechat.com/en"),
);
}
}
Expected results
Flutter normally launches without issues.
Actual results
Failed.