flutter: strings: Change Hint to Info
Thanks Matt Littlewood! Feedback: What does the hint button do? I dont see the hint.
Before Width: | Height: | Size: 156 KiB After Width: | Height: | Size: 187 KiB |
Before Width: | Height: | Size: 144 KiB After Width: | Height: | Size: 173 KiB |
Before Width: | Height: | Size: 104 KiB After Width: | Height: | Size: 126 KiB |
Before Width: | Height: | Size: 101 KiB After Width: | Height: | Size: 107 KiB |
Before Width: | Height: | Size: 92 KiB After Width: | Height: | Size: 98 KiB |
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 69 KiB |
Before Width: | Height: | Size: 233 KiB After Width: | Height: | Size: 258 KiB |
Before Width: | Height: | Size: 213 KiB After Width: | Height: | Size: 232 KiB |
Before Width: | Height: | Size: 145 KiB After Width: | Height: | Size: 156 KiB |
|
@ -1 +1 @@
|
|||
https://www.youtube.com/watch?v=AFN_NOKvzL4
|
||||
https://www.youtube.com/watch?v=jRDrnMFWjSU
|
||||
|
|
Before Width: | Height: | Size: 263 KiB After Width: | Height: | Size: 294 KiB |
Before Width: | Height: | Size: 243 KiB After Width: | Height: | Size: 267 KiB |
Before Width: | Height: | Size: 178 KiB After Width: | Height: | Size: 194 KiB |
Before Width: | Height: | Size: 102 KiB After Width: | Height: | Size: 108 KiB |
Before Width: | Height: | Size: 93 KiB After Width: | Height: | Size: 98 KiB |
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 70 KiB |
Before Width: | Height: | Size: 233 KiB After Width: | Height: | Size: 258 KiB |
Before Width: | Height: | Size: 213 KiB After Width: | Height: | Size: 231 KiB |
Before Width: | Height: | Size: 145 KiB After Width: | Height: | Size: 156 KiB |
|
@ -1 +1 @@
|
|||
https://www.youtube.com/watch?v=AFN_NOKvzL4
|
||||
https://www.youtube.com/watch?v=jRDrnMFWjSU
|
||||
|
|
|
@ -616,6 +616,10 @@
|
|||
"@pick": {
|
||||
"description": "Pick "
|
||||
},
|
||||
"info": "Info",
|
||||
"@info": {
|
||||
"description": "Info"
|
||||
},
|
||||
"hint": "Hint",
|
||||
"@hint": {
|
||||
"description": "Hint"
|
||||
|
|
|
@ -154,6 +154,7 @@
|
|||
"exitApp": "App 将退出。",
|
||||
"exitAppManually": "您需要立即退出并重新打开本程序才能使默认配置生效。",
|
||||
"pick": "选择",
|
||||
"info": "信息",
|
||||
"hint": "提示",
|
||||
"player": "玩家",
|
||||
"player1": "先手方",
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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()),
|
||||
]),
|
||||
);
|
||||
|
|