nakama 1.2.0 nakama: ^1.2.0 copied to clipboard
Nakama is an open-source scalable game server that lets you focus on building games.
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:logging/logging.dart';
import 'package:nakama_example/features/authentication/login/views/pages/login_page.dart';
import 'package:nakama_example/features/authentication/signup/views/pages/signup_page.dart';
import 'package:nakama_example/features/common/routes.dart';
import 'package:nakama_example/features/home/list_features/views/pages/list_features.dart';
import 'package:nakama_example/features/rpc/custom/views/pages/rpc_custom.dart';
void main() {
Logger.root.level = Level.ALL;
Logger.root.onRecord.listen((record) {
debugPrint('${record.level.name}: ${record.time}: ${record.message}');
});
runApp(ProviderScope(
child: MaterialApp(
debugShowCheckedModeBanner: false,
routes: {
Routes.login: (context) => LoginPage(),
Routes.signup: (context) => SignupPage(),
Routes.home: (context) => ListFeaturesPage(),
Routes.rpc: (context) => RpcCustomPage(),
},
),
));
}