Nakama is an open-source scalable game server. This is a Flutter client for Nakama written in pure dart and supports cross platform gaming on iOS, Android, Web and more.
This is the 1.0-Prerelease. Feel free to play around and give some final feebdack. All basic functions are ready to use.
You need a Nakama instance for developing. I suggest setting up Nakama with Docker Compose. You find a tutorial here: Install Nakama with Docker Compose and here Installation & Setup.
name: your_game
dependencies:
flutter:
sdk: flutter
flutter_nakama: ^1.0.0-dev.2
final client = getNakamaClient(
host: '127.0.0.1',
ssl: false,
serverKey: 'defaultkey',
grpcPort: 7349, // optional
httpPort: 7350, // optional
);
For example start with logging into an user account:
final session = await getNakamaClient().authenticateEmail(
email: '[email protected]',
password: 'mySecurePassword!',
);
print('Hey, you are logged in! UserID: ${session.userId}');
Flutter SDK Docs: https://flutter-nakama.gitbook.io
Nakama Docs: https://heroiclabs.com/docs