core/leaderboard_sync_seam
library
Classes
-
LeaderboardSyncCoordinator
-
Optional orchestrator wiring LocalScoreboardService (always-on, local
cache) together with a LeaderboardSyncSeam (a real backend, when
registered). Neither service has to be used directly — this exists for
the common case of "submit to both, read from the backend but never go
blank when it's unreachable".
-
LeaderboardSyncSeam
-
Platform-neutral leaderboard-sync seam — mirrors PurchaseSeam/
CloudSaveProvider's design: the package pulls in no leaderboard SDK (no
Play Games Services, no Game Center, no custom backend client); a
consuming app registers its own adapter via
Get.put<LeaderboardSyncSeam>(myAdapter, permanent: true).
-
ScoreEntry
-
One row of a synced leaderboard — the seam's own data shape, deliberately
simpler than the widget-facing
LeaderboardEntry
(presentation/widgets/common/leaderboard_list.dart): a raw int score
instead of a locale-formatted display string, since a sync adapter
round-trips raw numbers with a real backend.