ViewFactory fix for newer versions of Flutter
This commit is contained in:
@@ -13,8 +13,8 @@ class FilamentViewFactory(
|
|||||||
private val activity: Activity,
|
private val activity: Activity,
|
||||||
private val binaryMessenger: BinaryMessenger
|
private val binaryMessenger: BinaryMessenger
|
||||||
) : PlatformViewFactory(StandardMessageCodec.INSTANCE) {
|
) : PlatformViewFactory(StandardMessageCodec.INSTANCE) {
|
||||||
override fun create(context: Context, viewId: Int, args: Any?): PlatformView {
|
override fun create(context: Context?, viewId: Int, args: Any?): PlatformView {
|
||||||
val creationParams = args as Map<String?, Any?>?
|
val creationParams = args as Map<String?, Any?>?
|
||||||
return FilamentView(viewId, context, activity, binaryMessenger, creationParams)
|
return FilamentView(viewId, context!!, activity, binaryMessenger, creationParams)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user