Monday, October 12, 2026
HomeiOS Developmentios - Error when displaying textual content from Platform View

ios – Error when displaying textual content from Platform View

[ad_1]

In a Flutter software, I am attempting to show textual content on the display screen from a local utilizing Platform View. To do that, I used the official documentation, the code is an identical.

Error when beginning simulator:

Operate produces anticipated kind ‘FlutterBinaryMessenger’; did you imply to name it with ‘()’?

The error happens within the code:

class FLPlugin: NSObject, FlutterPlugin {
    public static func register(with registrar: FlutterPluginRegistrar) {
        let manufacturing facility = FLNativeViewFactory(messenger: registrar.messenger)
        registrar.register(manufacturing facility, withId: "textview_ios")
    }
}

After I add “()” :

let manufacturing facility = FLNativeViewFactory(messenger: registrar.messenger())

The simulator begins the appliance and the appliance closes instantly. How can this drawback be solved?

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments