是否可以在一个模块中添加多个FlutterPlatformView?

时间:2020-06-19 13:27:27

标签: flutter

我添加了一个FlutterPlatformView,它在我的应用程序中具有相应的故事板。 但是,有没有办法用不同的故事板添加另一个FlutterPlatformView?

我觉得情节提要仅接受FlutterViewController,因为customClass不是继承FlutterPlatformView的我的自定义视图。 我的情节提要代码:

 <objects>
                <viewController id="xxx-xx-xxx" customClass="FlutterViewController" sceneMemberID="viewController">
                    <view key="view" contentMode="scaleToFill" id="xxx-xx-xxx">
                        <rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
                        <subviews>
                            <arscnView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="xxx-xx-xxx">
                                <rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
                            </arscnView>
                        </subviews>
...

当我从代码创建UI时,我可以添加不同的FlutterPlatformView,但是我正在从情节提要中使用它进行创建。

0 个答案:

没有答案