Skip to content

Commit

Permalink
Show numbers in Arabic
Browse files Browse the repository at this point in the history
  • Loading branch information
omaryasser committed Apr 7, 2024
1 parent 20354b2 commit 38ff03a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import 'package:azkar/models/global_challenge.dart';
import 'package:azkar/models/sub_challenge.dart';
import 'package:azkar/net/api_exception.dart';
import 'package:azkar/services/service_provider.dart';
import 'package:azkar/utils/arabic_utils.dart';
import 'package:azkar/utils/snack_bar_utils.dart';
import 'package:azkar/views/core_views/home/do_challenge/do_azkar_challenge/do_azkar_challenge_list_item_widget.dart';
import 'package:confetti/confetti.dart';
Expand Down Expand Up @@ -210,14 +211,16 @@ class _DoGlobalChallengeScreenState extends State<DoGlobalChallengeScreen>
]
: <TextSpan>[
new TextSpan(
text: 'تهانينا! لقد تم إنهاء هذا التحدي المشترك ',
text:
'تهانينا! لقد تم إنهاء هذا التحدي المشترك ',
style: new TextStyle(
color: Colors.grey.shade700,
fontWeight: FontWeight.bold),
),
new TextSpan(
text: (widget.globalChallenge.finishedCount + 1)
.toString(),
text: ArabicUtils.englishToArabic(
(widget.globalChallenge.finishedCount + 1)
.toString()),
style: new TextStyle(
color: Colors.green,
fontSize: 35,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ description: A new Flutter project.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html

version: 1.14.8+149
version: 1.14.8+151

environment:
sdk: '>=2.12.0 <3.0.0'
Expand Down

0 comments on commit 38ff03a

Please sign in to comment.