Files
wolf_dart/apps/wolf_3d_gui/lib/main.dart
T

31 lines
804 B
Dart

/// Flutter entry point for the GUI host application.
///
/// The GUI bootstraps bundled and discoverable game data through
/// [Wolf3dFlutterEngine]
/// before presenting the game-selection flow.
library;
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:window_manager/window_manager.dart';
import 'package:wolf_3d_flutter/wolf_3d_flutter.dart';
/// Creates the application shell after loading available Wolf3D data sets.
void main() async {
WidgetsFlutterBinding.ensureInitialized();
if (supportsDesktopWindowing) {
await windowManager.ensureInitialized();
}
final Wolf3dFlutterEngine wolf3d = await Wolf3dFlutterEngine().init(
debug: kDebugMode,
);
runApp(
MaterialApp(
home: Wolf3dApp(wolf3d: wolf3d),
),
);
}