game_center_helper 1.0.1 copy "game_center_helper: ^1.0.1" to clipboard
game_center_helper: ^1.0.1 copied to clipboard

PlatformiOS

A Flutter plugin for authenticating Game Center users and retrieving identity information.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:game_center_helper/game_center_helper.dart';

void main() => runApp(const MyApp());

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Game Center Helper Example'),
        ),
        body: Center(
          child: ElevatedButton(
            onPressed: () async {
              final identity = await GameCenterHelper.getGameCenterIdentity();
              if (identity != null) {
                print('Game Center User: $identity');
              } else {
                print('Failed to fetch Game Center identity.');
              }
            },
            child: const Text('Get Game Center Identity'),
          ),
        ),
      ),
    );
  }
}
0
likes
150
points
14
downloads

Publisher

verified publisherbedcode.dev

Weekly Downloads

A Flutter plugin for authenticating Game Center users and retrieving identity information.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on game_center_helper

Packages that implement game_center_helper