Skip to content
This repository was archived by the owner on Apr 1, 2024. It is now read-only.

Commit

Permalink
📝 更新了文档的banner
Browse files Browse the repository at this point in the history
  • Loading branch information
dzxrly committed Feb 15, 2024
1 parent 03a3785 commit 2dacf4e
Show file tree
Hide file tree
Showing 11 changed files with 109 additions and 62 deletions.
44 changes: 30 additions & 14 deletions img/banner_EN.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 24 additions & 9 deletions img/banner_ZH_CN.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 30 additions & 14 deletions img/banner_ZH_TW.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ class SharePlayerState extends StatelessWidget {
CustomSnackBar.showSnackBar(
context,
AppLocalizations.of(context)!
.exportPlayerState('success'),
.exportPlayerStats('success'),
type: 'info')
.show(context)
})
.catchError((error) => {
CustomSnackBar.showSnackBar(
context,
AppLocalizations.of(context)!.exportPlayerState(error),
AppLocalizations.of(context)!.exportPlayerStats(error),
).show(context)
});
}
Expand Down Expand Up @@ -79,12 +79,12 @@ class SharePlayerState extends StatelessWidget {
),
const Padding(padding: EdgeInsets.only(left: 16)),
Text(
AppLocalizations.of(context)!.exportPlayerStateBtnTitle,
AppLocalizations.of(context)!.exportPlayerStatsBtnTitle,
style: TextStyle(
fontWeight:
Theme.of(context).textTheme.bodyMedium?.fontWeight,
Theme.of(context).textTheme.bodyMedium?.fontWeight,
fontSize:
Theme.of(context).textTheme.bodyMedium?.fontSize,
Theme.of(context).textTheme.bodyMedium?.fontSize,
color: Theme.of(context).colorScheme.primary,
),
),
Expand Down
20 changes: 10 additions & 10 deletions lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}
}
},
"aboutPageTitle": "Battlefield2042\nState",
"aboutPageTitle": "Battlefield2042\nStats",
"@aboutPageTitle": {
"description": "Title of the about page"
},
Expand All @@ -28,7 +28,7 @@
"@aboutPageDonateBtnTitle": {
"description": "Title of the donate button on the about page"
},
"loginScreenLogoTitle": "State",
"loginScreenLogoTitle": "Stats",
"@loginScreenLogoTitle": {
"description": "Title under the BF2042 logo on the login_screen"
},
Expand Down Expand Up @@ -60,7 +60,7 @@
"@searchResultsTitle": {
"description": "Title of the search results"
},
"requestErrorTip": "{requestError, select, notPlay2042{The player may not played BF2042} notFound{Player not found} serverError{Data API server error, please try again later} networkError{Network error, please check your network} unknownError{Unknown error, please try again later} timeoutError{Request timeout, please try again later} rejectedError{The server rejected the request, please try again later} privateLimitError{Player state is protected by private setting} other{default}}",
"requestErrorTip": "{requestError, select, notPlay2042{The player may not played BF2042} notFound{Player not found} serverError{Data API server error, please try again later} networkError{Network error, please check your network} unknownError{Unknown error, please try again later} timeoutError{Request timeout, please try again later} rejectedError{The server rejected the request, please try again later} privateLimitError{Player stats is protected by private setting} other{default}}",
"@requestErrorTip": {
"description": "Tip for the request error",
"placeholders": {
Expand Down Expand Up @@ -494,15 +494,15 @@
"@playerUidCopyError": {
"description": "Tip for the player UID copy error"
},
"exportPlayerStateBtnTitle": "Export as Snapshot",
"@exportPlayerStateBtnTitle": {
"description": "Title of the export player state button"
"exportPlayerStatsBtnTitle": "Export as Snapshot",
"@exportPlayerStatsBtnTitle": {
"description": "Title of the export player stats button"
},
"exportPlayerState": "{exportPlayerState, select, success{Exported successfully !} error{Failed to export the player stat snapshot} denied{Permission denied, please allow the storage access permission} other{default}}",
"@exportPlayerState": {
"description": "Tip for the export player state",
"exportPlayerStats": "{exportPlayerStats, select, success{Exported successfully !} error{Failed to export the player stats snapshot} denied{Permission denied, please allow the storage access permission} other{default}}",
"@exportPlayerStats": {
"description": "Tip for the export player stats",
"placeholders": {
"exportPlayerState": {
"exportPlayerStats": {
"type": "String"
}
}
Expand Down
4 changes: 2 additions & 2 deletions lib/l10n/app_zh.arb
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,6 @@
"gadgetDataType": "{gadgetDataType, select, killsPerMinute{KPM} uses{使用次数} destroyCount{摧毁载具} other{default}}",
"playerUidCopied": "UID 已复制到剪贴板",
"playerUidCopyError": "写入剪贴板时发生错误",
"exportPlayerStateBtnTitle": "保存数据快照",
"exportPlayerState": "{exportPlayerState, select, success{保存数据快照成功} error{保存数据快照失败} denied{未授予存储权限,无法保存} other{default}}"
"exportPlayerStatsBtnTitle": "保存数据快照",
"exportPlayerStats": "{exportPlayerStats, select, success{保存数据快照成功} error{保存数据快照失败} denied{未授予存储权限,无法保存} other{default}}"
}
4 changes: 2 additions & 2 deletions lib/l10n/app_zh_Hans.arb
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,6 @@
"gadgetDataType": "{gadgetDataType, select, killsPerMinute{KPM} uses{使用次数} destroyCount{摧毁载具} other{default}}",
"playerUidCopied": "UID 已复制到剪贴板",
"playerUidCopyError": "写入剪贴板时发生错误",
"exportPlayerStateBtnTitle": "保存数据快照",
"exportPlayerState": "{exportPlayerState, select, success{保存数据快照成功} error{保存数据快照失败} denied{未授予存储权限,无法保存} other{default}}"
"exportPlayerStatsBtnTitle": "保存数据快照",
"exportPlayerStats": "{exportPlayerStats, select, success{保存数据快照成功} error{保存数据快照失败} denied{未授予存储权限,无法保存} other{default}}"
}
4 changes: 2 additions & 2 deletions lib/l10n/app_zh_Hant.arb
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,6 @@
"gadgetDataType": "{gadgetDataType, select, killsPerMinute{KPM} uses{使用次數} destroyCount{摧毀載具} other{default}}",
"playerUidCopied": "UID 已複製到剪貼簿",
"playerUidCopyError": "寫入剪貼簿時發生錯誤",
"exportPlayerStateBtnTitle": "儲存資料快照",
"exportPlayerState": "{exportPlayerState, select, success{保存資料快照成功} error{保存資料快照失敗} denied{未授予儲存權限,無法儲存} other{default}}"
"exportPlayerStatsBtnTitle": "儲存資料快照",
"exportPlayerStats": "{exportPlayerStats, select, success{保存資料快照成功} error{保存資料快照失敗} denied{未授予儲存權限,無法儲存} other{default}}"
}
2 changes: 1 addition & 1 deletion lib/screen/player_info_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import 'package:battlefield_2042_state/components/gadget_list.dart';
import 'package:battlefield_2042_state/components/gamemode_list.dart';
import 'package:battlefield_2042_state/components/map_list.dart';
import 'package:battlefield_2042_state/components/overview_list.dart';
import 'package:battlefield_2042_state/components/share_player_state.dart';
import 'package:battlefield_2042_state/components/share_player_stats.dart';
import 'package:battlefield_2042_state/components/vehicle_list.dart';
import 'package:battlefield_2042_state/components/weapon_list.dart';
import 'package:battlefield_2042_state/model/player_info_model.dart';
Expand Down
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -798,10 +798,10 @@ packages:
dependency: transitive
description:
name: url_launcher_android
sha256: "507dc655b1d9cb5ebc756032eb785f114e415f91557b73bf60b7e201dfedeb2f"
sha256: d4ed0711849dd8e33eb2dd69c25db0d0d3fdc37e0a62e629fe32f57a22db2745
url: "https://pub.dev"
source: hosted
version: "6.2.2"
version: "6.3.0"
url_launcher_ios:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 2.2.9+70
version: 2.2.9+71

environment:
sdk: '>=3.1.3 <4.0.0'
Expand Down

0 comments on commit 2dacf4e

Please sign in to comment.