liquid2d 0.0.3 copy "liquid2d: ^0.0.3" to clipboard
liquid2d: ^0.0.3 copied to clipboard

Dart/Flutter binding for Chipmunk2D physics engine. This uses Chipmunk2D version 7.0.3.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:liquid2d_example/core/routes.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  // fullscreen
  // await windowManager.ensureInitialized();
  // await WindowManager.instance.setFullScreen(true);
  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(
      debugShowCheckedModeBanner: false,
      initialRoute: '/',
      onGenerateRoute: (settings) => routeGen(settings, context),
    );
  }
}
1
likes
150
points
64
downloads

Publisher

unverified uploader

Weekly Downloads

Dart/Flutter binding for Chipmunk2D physics engine. This uses Chipmunk2D version 7.0.3.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

equatable, ffi, flutter, plugin_platform_interface, uuid, vector_math

More

Packages that depend on liquid2d