play_game_service 0.1.1 copy "play_game_service: ^0.1.1" to clipboard
play_game_service: ^0.1.1 copied to clipboard

outdated

A Google Play Games Service Plugin, Created for my little game app. Only support Android for now, but nullsafe

play_game_service #

A Google Play Games Services plugin for flutter

Getting Started #

  1. add dependencies

    dependencies:
      play_game_service: ^0.0.1
    
  2. import requirements

    import 'package:play_game_service/play_game_service.dart';
    
  3. SignIn

    // set scopeSnapShot=false if you don't want play with snapshots;
    var ret = await PlayGameService.signIn(scopeSnapShot: true);
    
  4. Save Game Data

    var ret = await PlayGameService.saveSnapShot("HashiTogether", new Uint8List(10), "description");
    
  5. Load Game Data

    var map = await PlayGameService.loadSnapShot("HashiTogether");
    if(map["result"] == 0){
        Uint8List data = map["data"];
        // TODO Now you have data, do what you want.
        return true;
    } else {
        return false;
    }
    
2
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A Google Play Games Service Plugin, Created for my little game app. Only support Android for now, but nullsafe

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on play_game_service