add auth, format
This commit is contained in:
@@ -241,8 +241,11 @@ class L10nHelper {
|
||||
/// final pointsText = L10nHelper.formatPoints(context, 100);
|
||||
/// // Returns: "+100 điểm" (Vietnamese) or "+100 points" (English)
|
||||
/// ```
|
||||
static String formatPoints(BuildContext context, int points,
|
||||
{bool showSign = true}) {
|
||||
static String formatPoints(
|
||||
BuildContext context,
|
||||
int points, {
|
||||
bool showSign = true,
|
||||
}) {
|
||||
if (showSign && points > 0) {
|
||||
return context.l10n.earnedPoints(points);
|
||||
} else if (showSign && points < 0) {
|
||||
|
||||
Reference in New Issue
Block a user