Skip to content

Commit

Permalink
fix: mandarin and cantonese state is saved across app restarts.
Browse files Browse the repository at this point in the history
  • Loading branch information
CurtlyCritchlow committed Nov 19, 2024
1 parent 9ac4cfc commit 2d8ad29
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions packages/dart/npt_flutter/lib/styles/sizes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,6 @@ class SizeConfig {

deviceTextFactor = _mediaQueryData.textScaler.scale(20) / 20;

// print("height is::: $screenHeight");

if (screenHeight < 1200) {
blockSizeHorizontal = screenWidth / 100;
blockSizeVertical = screenHeight / 100;
Expand Down Expand Up @@ -180,7 +178,6 @@ class SizeConfig {
// }
double res = (val / refWidth) * 100;
double temp = res * blockSizeHorizontal;
// print("width$temp");

return temp;
}
Expand All @@ -205,7 +202,7 @@ class SizeConfig {
} else {
temp = res * safeBlockVertical + (val * 0.2473919523099851) * textFactor;
}
// print('$val,$temp,$refHeight,$refWidth');

final maxSize = val + Sizes.p4;
if (temp > maxSize) {
return maxSize;
Expand Down
2 changes: 1 addition & 1 deletion packages/dart/npt_flutter/lib/util/language.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ enum Language {
english,
@JsonValue("es")
spanish,
@JsonValue("pt-br")
@JsonValue("pt")
portuguese,
@JsonValue("cn")
mandarin,
Expand Down
10 changes: 5 additions & 5 deletions packages/dart/npt_flutter/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ packages:
path: "../noports_core"
relative: true
source: path
version: "6.2.0"
version: "6.2.1"
openssh_ed25519:
dependency: transitive
description:
Expand Down Expand Up @@ -1317,10 +1317,10 @@ packages:
dependency: "direct main"
description:
name: socket_connector
sha256: "3c641546699aa58e9ab8be9841627a30af3c1ffcf4461ca5d00d7c56392ab63a"
sha256: "091c83fb214f6ff48dbf38f6e011e148d996cce05487303c5e8a0cd72369b0e2"
url: "https://pub.dev"
source: hosted
version: "2.2.0"
version: "2.3.3"
source_gen:
dependency: transitive
description:
Expand Down Expand Up @@ -1549,10 +1549,10 @@ packages:
dependency: transitive
description:
name: vm_service
sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d"
sha256: f652077d0bdf60abe4c1f6377448e8655008eef28f128bc023f7b5e8dfeb48fc
url: "https://pub.dev"
source: hosted
version: "14.2.5"
version: "14.2.4"
watcher:
dependency: transitive
description:
Expand Down

0 comments on commit 2d8ad29

Please sign in to comment.