fix: commas in share score

pull/423/head
Allison Ryan 3 years ago
parent ea33c1c889
commit 557289858b

@ -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