Files
wolf_dart/packages/wolf_3d_flutter/lib/widgets/wolf3d_app.dart
T

24 lines
600 B
Dart

library;
import 'package:flutter/material.dart';
import 'package:wolf_3d_flutter/wolf_3d_flutter.dart';
/// Minimal app shell that binds a prepared [Wolf3dFlutterEngine] instance to
/// host screens.
class Wolf3dApp extends StatelessWidget {
/// Shared initialized facade that owns game data, input, and audio services.
final Wolf3dFlutterEngine wolf3d;
const Wolf3dApp({
super.key,
required this.wolf3d,
});
@override
Widget build(BuildContext context) {
return wolf3d.availableGames.isEmpty
? const NoGameDataScreen()
: GameScreen(wolf3d: wolf3d);
}
}