live_game_lib 0.0.4 copy "live_game_lib: ^0.0.4" to clipboard
live_game_lib: ^0.0.4 copied to clipboard

A Game Libary for creating live multiplayergames with flutter and firebase very fast and easy.

example/lib/main.dart

import 'package:example/firebase_options.dart';
import 'package:example/gamelist.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
import 'package:live_game_lib/backend/gamemanager.dart';

GameManager? inst;
void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
  inst = GameManager(games: games);
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        debugShowCheckedModeBanner: false,
        title: 'Live Games Demo',
        theme: ThemeData(
          colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
          useMaterial3: true,
        ),
        initialRoute: '/',
        routes: inst?.routes);
  }
}
5
likes
0
points
66
downloads

Publisher

unverified uploader

Weekly Downloads

A Game Libary for creating live multiplayergames with flutter and firebase very fast and easy.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

firebase, firebase_auth, firebase_core, firebase_database, flutter, playing_cards

More

Packages that depend on live_game_lib