games_services 5.2.0
games_services: ^5.2.0 copied to clipboard
A Flutter plugin to support Game Center, Google Play Games, and (on Windows) PlayFab services.
A Flutter plugin to support Game Center, Google Play Games, and (on Windows) PlayFab services.
Screenshot #
iOS

Android

macOS

Tutorials #
Video tutorial Will be added soon.
Apps #
Monkey Banana Android, iOS, and macOS by Abedalkareem.
Nonogram Colors by @tommybuonomo.
Ripple Effect Puzzle by @tommybuonomo.
Lights: A Memory Game Android & iOS by @theLee3.
TTG - Through The Galaxies 🚀 casual game . Android & iOS by @imaNNeo
Documentation #
Check the docs folder for documentation and how to use the plugin.
Windows (PlayFab) #
Windows has no native equivalent of Game Center or Google Play Games, so on Windows the plugin is backed by Microsoft PlayFab over its REST API. See docs/windows_playfab.md for the full setup, but in short:
// Call once, before signIn(), on Windows. No-op on Android/iOS/macOS.
await GamesServices.initialize(playFabTitleId: "ABCDE");
await GameAuth.signIn();
Notes:
- Windows reuses the iOS identifiers you pass for leaderboards and achievements.
- Leaderboards map to PlayFab statistics; achievements are defined in PlayFab Title Data with progress stored in player data; saved games use PlayFab Entity Files.
- Native-UI methods (
showAchievements,showLeaderboards, the access point) and Apple/Google-only methods (getAuthCode,fetchIdentityVerificationSignature) returnnullon Windows.
Installing #
Simply add games_services as a dependency in your pubspec.yaml by running the following command:
flutter pub add games_services
The amazing people that made this plugin possible #
Support me 🚀 #
You can support this project by:
1- Checking my apps.
2- Star the repo.
3- Share the repo with your friends.
4- Buy Me A Coffee.