Skip to content

eLinux platform‐views

Hidenori Matsubayashi edited this page Aug 23, 2023 · 4 revisions

This page explains platform views for eLinux.

What is platform-views?

Platform views allow you to embed native views in a Flutter app, so you can apply transforms, clips, and opacity to the native view from Dart. See Hosting native Android views in your Flutter app with Platform Views for more overview and the details.

eLinux platform views

Platform views for eLinux (Dart code side) is designed to be compatible with Android's.

Add flutter_elinux to pubspec.yaml

Please replace the flutter_elinux's path in pubspec.yaml with the path to your flutter project.

dependencies:
  flutter:
    sdk: flutter
  flutter_elinux: 
    # You need to correctly replace the path below with the path of your flutter-elinux directory.
    path: /home/hidenori/work/flutter/flutter-elinux/packages/flutter_elinux

Example

See packages/flutter_elinux/examples/platform_views/native_texture_view