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

Dart/Flutter binding for Chipmunk, 2D physics engine.

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
0
points
46
downloads

Publisher

unverified uploader

Weekly Downloads

Dart/Flutter binding for Chipmunk, 2D physics engine.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

equatable, ffi, flutter, plugin_platform_interface, uuid, vector_math

More

Packages that depend on liquid2d