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

PlatformAndroid

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:firebase_core/firebase_core.dart';
// import 'package:firebase_crashlytics/firebase_crashlytics.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();
  // await Firebase.initializeApp();
  // FlutterError.onError = FirebaseCrashlytics.instance.recordFlutterFatalError;
  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 MaterialApp(
      // theme: ThemeData(platform: TargetPlatform.iOS),
      home: const SelectScreen(),
      scrollBehavior: SimplePlatformViewScrollBehavior(),
    );
  }
}
5
likes
130
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

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_plugin_android_lifecycle, jni, plugin_platform_interface

More

Packages that depend on simple_platform_view