flutter_unity_widget_native 2022.1.7+12 copy "flutter_unity_widget_native: ^2022.1.7+12" to clipboard
flutter_unity_widget_native: ^2022.1.7+12 copied to clipboard

PlatformAndroidiOS
outdated

Flutter Unity 3D widget for embedding Unity game scenes in flutter. This library now supports Unity as a Library.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_unity_widget_example/screens/no_interaction_screen.dart';
import 'package:flutter_unity_widget_example/screens/orientation_screen.dart';

import 'menu_screen.dart';
import 'screens/api_screen.dart';
import 'screens/loader_screen.dart';
import 'screens/simple_screen.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Unity Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      initialRoute: '/',
      routes: {
        '/': (context) => MenuScreen(),
        '/simple': (context) => SimpleScreen(),
        '/loader': (context) => LoaderScreen(),
        '/orientation': (context) => OrientationScreen(),
        '/api': (context) => ApiScreen(),
        '/none': (context) => NoInteractionScreen(),
      },
    );
  }
}
4
likes
130
points
12
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter Unity 3D widget for embedding Unity game scenes in flutter. This library now supports Unity as a Library.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

ffi, flutter, flutter_plugin_android_lifecycle, flutter_web_plugins, plugin_platform_interface, stream_transform, webview_flutter, webviewx

More

Packages that depend on flutter_unity_widget_native