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