fix: commas in share score (#423)

pull/426/head
Allison Ryan 2 years ago committed by GitHub
parent 1316712383
commit a20c2141e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -109,7 +109,7 @@ class Backbox extends PositionComponent with ZIndex, HasGameRef {
ShareDisplay(
onShare: (platform) {
final message = readProvider<AppLocalizations>()
.iGotScoreAtPinball(state.score);
.iGotScoreAtPinball(state.score.formatScore());
final url = _shareRepository.shareText(
value: message,
platform: platform,

@ -218,7 +218,7 @@
"description": "Text to share score on Social Network",
"placeholders": {
"score": {
"type": "int"
"type": "String"
}
}
}

@ -161,7 +161,7 @@ class _MockAppLocalizations extends Mock implements AppLocalizations {
String get leaderboardErrorMessage => '';
@override
String iGotScoreAtPinball(int _) => '';
String iGotScoreAtPinball(String _) => '';
}
void main() {

Loading…
Cancel
Save