setBackgroundColor

Color

rgb

255

255

255

))

textView

text

"Rendered on a native Android view (id: $id)"

Create a factory class that creates an instance of the
NativeView created earlier
(for example, NativeViewFactory.kt):

package

dev.flutter.example

import

android.content.Context

import

android.view.View

import

io.flutter.plugin.common.StandardMessageCodec

import

io.flutter.plugin.platform.PlatformView

import

io.flutter.plugin.platform.PlatformViewFactory

class

NativeViewFactory

PlatformViewFactory