Fix take back and step forward buttons icon direction in right-to-left.

This commit is contained in:
Calcitem 2021-07-25 12:45:18 +08:00
parent a8222d87f3
commit 2811c10a11
No known key found for this signature in database
GPG Key ID: F2F7C29E054CFB80
1 changed files with 6 additions and 2 deletions

View File

@ -1527,7 +1527,9 @@ class _GamePageState extends State<GamePage>
// Replace with a Row for horizontal icon + text
children: <Widget>[
Icon(
FluentIcons.chevron_left_24_regular,
ltr
? FluentIcons.chevron_left_24_regular
: FluentIcons.chevron_right_24_regular,
color: Color(Config.navigationToolbarIconColor),
),
],
@ -1540,7 +1542,9 @@ class _GamePageState extends State<GamePage>
// Replace with a Row for horizontal icon + text
children: <Widget>[
Icon(
FluentIcons.chevron_right_24_regular,
ltr
? FluentIcons.chevron_right_24_regular
: FluentIcons.chevron_left_24_regular,
color: Color(Config.navigationToolbarIconColor),
),
],