Can I use Skia Graphics Engine with Flutter for Face Recognition Login project?

778 views
Skip to first unread message

Niyazi Toros

unread,
May 19, 2018, 3:37:34 AM5/19/18
to Flutter Dev
Hi,

I ask many time and most of them I didn't even get any response. This is another my request or question.

Can I use Skia Graphics Engine with Flutter for Face Recognition Login project?

If yes, where I can get the information, examples, plugins documentations?

Thanks

Chinmay Garde

unread,
May 19, 2018, 3:55:05 AM5/19/18
to niyazi...@gmail.com, Flutter Dev
Flutter uses Skia to render the application. However, the Skia API is not directly exposed via C++. The lowest layers of the dart:ui library interface pretty directly with Skia however. You can browse the documentation here and determine if this satisfies your needs. These examples show rendering with each layer of the Flutter render stack. I suspect you are looking for the raw.

Now, if you think Skia offers something that is currently not exposed via the dart:ui, it is unlikely that the engine will add that extra feature because we have binary size constraints and anything added to the engine adds to the size of all Flutter applications. However, you can compile your own version of Skia (or really any other platform library that you depend on). You can then do the computation on the platform using said library and ferry results for updating the UI using either the platform channels mechanism (example here) or raw OpenGL textures.

To summarize, Skia is an implementation detail of the Flutter engine. If you can't accomplish what you need with the Flutter Dart APIs, you can always bring your own library.

Cheers,
Chinmay

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Niyazi Toros

unread,
May 19, 2018, 11:55:09 PM5/19/18
to Flutter Dev

Thanks Chinmay, I will look at it.
Reply all
Reply to author
Forward
0 new messages