flutter: strings: Change Hint to Info

Thanks Matt Littlewood!
Feedback: What does the hint button do? I dont see the hint.
This commit is contained in:
Calcitem 2021-05-15 00:40:34 +08:00
parent bec4e57d27
commit d19b70eca7
24 changed files with 15 additions and 10 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 156 KiB

After

Width:  |  Height:  |  Size: 187 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 144 KiB

After

Width:  |  Height:  |  Size: 173 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB

After

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 101 KiB

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 KiB

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 233 KiB

After

Width:  |  Height:  |  Size: 258 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 213 KiB

After

Width:  |  Height:  |  Size: 232 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 145 KiB

After

Width:  |  Height:  |  Size: 156 KiB

View File

@ -1 +1 @@
https://www.youtube.com/watch?v=AFN_NOKvzL4
https://www.youtube.com/watch?v=jRDrnMFWjSU

Binary file not shown.

Before

Width:  |  Height:  |  Size: 263 KiB

After

Width:  |  Height:  |  Size: 294 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 243 KiB

After

Width:  |  Height:  |  Size: 267 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 178 KiB

After

Width:  |  Height:  |  Size: 194 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 93 KiB

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 233 KiB

After

Width:  |  Height:  |  Size: 258 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 213 KiB

After

Width:  |  Height:  |  Size: 231 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 145 KiB

After

Width:  |  Height:  |  Size: 156 KiB

View File

@ -1 +1 @@
https://www.youtube.com/watch?v=AFN_NOKvzL4
https://www.youtube.com/watch?v=jRDrnMFWjSU

View File

@ -616,6 +616,10 @@
"@pick": {
"description": "Pick "
},
"info": "Info",
"@info": {
"description": "Info"
},
"hint": "Hint",
"@hint": {
"description": "Hint"

View File

@ -154,6 +154,7 @@
"exitApp": "App 将退出。",
"exitAppManually": "您需要立即退出并重新打开本程序才能使默认配置生效。",
"pick": "选择",
"info": "信息",
"hint": "提示",
"player": "玩家",
"player1": "先手方",

View File

@ -24,8 +24,8 @@ class AppTheme {
static var toolbarTextColor = toolbarIconColor;
static var moveHistoryTextColor = Colors.yellow;
static var moveHistoryDialogBackgroundColor = Colors.transparent;
static var hintDialogackgroundColor = moveHistoryDialogBackgroundColor;
static var hintTextColor = moveHistoryTextColor;
static var infoDialogackgroundColor = moveHistoryDialogBackgroundColor;
static var infoTextColor = moveHistoryTextColor;
static var simpleDialogOptionTextColor = appPrimaryColor;
/// Settings page

View File

@ -749,7 +749,7 @@ class _GamePageState extends State<GamePage> with RouteAware {
.showSnackBar(SnackBar(content: Text(message)));
}
String getHintText() {
String getInfoText() {
String ret = S.of(context).score +
"\n" +
S.of(context).player1 +
@ -796,7 +796,7 @@ class _GamePageState extends State<GamePage> with RouteAware {
Widget createToolbar() {
final manualText = Game.instance.position.manualText;
final analyzeText = getHintText();
final analyzeText = getInfoText();
var newGameButton = TextButton(
child: Column(
@ -876,7 +876,7 @@ class _GamePageState extends State<GamePage> with RouteAware {
),
);
var hintButton = TextButton(
var infoButton = TextButton(
child: Column(
// Replace with a Row for horizontal icon + text
children: <Widget>[
@ -884,7 +884,7 @@ class _GamePageState extends State<GamePage> with RouteAware {
Icons.lightbulb_outline,
color: AppTheme.toolbarIconColor,
),
Text(S.of(context).hint,
Text(S.of(context).info,
style: TextStyle(color: AppTheme.toolbarTextColor)),
],
),
@ -893,7 +893,7 @@ class _GamePageState extends State<GamePage> with RouteAware {
barrierDismissible: true,
builder: (BuildContext context) {
return AlertDialog(
backgroundColor: AppTheme.hintDialogackgroundColor,
backgroundColor: AppTheme.infoDialogackgroundColor,
content: SingleChildScrollView(
child: Text(analyzeText, style: AppTheme.moveHistoryTextStyle)),
actions: <Widget>[
@ -923,7 +923,7 @@ class _GamePageState extends State<GamePage> with RouteAware {
Expanded(child: SizedBox()),
moveHistoryButton,
Expanded(child: SizedBox()), //dashboard_outlined
hintButton,
infoButton,
Expanded(child: SizedBox()),
]),
);