casino_plus 0.1.0 casino_plus: ^0.1.0 copied to clipboard
A easy way to add casino games into your application. We provide the user‐friendly APIs.
import 'package:flutter/material.dart';
import 'package:casino_plus/casino_plus.dart';
void main() {
final app = SampleParentApp();
runApp(app);
}
class SampleParentApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
// Just show a page.
final gamePage = GameOfflinePage(
gameId: GameId.cakepoker,
onGamePageClose: () => debugPrint('please pop page manually'),
);
// put the page anywhere in your app
return MaterialApp(
home: gamePage,
);
}
}