bonfire 3.6.0
bonfire: ^3.6.0 copied to clipboard
(RPG maker) Create RPG-style or similar games more simply with Flame.
example/lib/main.dart
import 'package:bonfire/bonfire.dart';
import 'package:example/core/app_routes.dart';
import 'package:example/core/theme/app_colors.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
if (!kIsWeb) {
await Flame.device.setLandscape();
await Flame.device.fullScreen();
}
runApp(const BonfireExamplesApp());
}
class BonfireExamplesApp extends StatelessWidget {
const BonfireExamplesApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(
primaryColor: AppColors.primary,
colorScheme: const ColorScheme.dark().copyWith(
primary: AppColors.primary,
),
scaffoldBackgroundColor: AppColors.background,
),
routes: AppRoutes.routes,
);
}
}