simple_platform_view 0.0.2 copy "simple_platform_view: ^0.0.2" to clipboard
simple_platform_view: ^0.0.2 copied to clipboard

A Flutter plugin to integrate platform views directly into the Flutter view hierarchy, aiming to provide the best possible performance.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:simple_platform_view/simple_platform_view.dart';

import 'package:simple_platform_view_example/screen/select_screen.dart';


void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  // clean plugin after hot restart
  await SimplePlatformView.restart();
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }
  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: SelectScreen(),
    );
  }
}
5
likes
0
pub points
6%
popularity

Publisher

unverified uploader

A Flutter plugin to integrate platform views directly into the Flutter view hierarchy, aiming to provide the best possible performance.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_plugin_android_lifecycle, plugin_platform_interface

More

Packages that depend on simple_platform_view