basket_ball_game 1.0.1
basket_ball_game: ^1.0.1 copied to clipboard
A customizable basketball shooting game widget built with Flame. Embed a full 3-minute basketball arcade game anywhere in your Flutter app.
example/lib/main.dart
import 'package:basket_ball_game/basket_ball_game.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Basketball Game Example',
home: const SafeArea(
top: true,
child: BasketballGameWidget(),
),
);
}
}