Skip to content

Commit

Permalink
flutter: Fix var's typo
Browse files Browse the repository at this point in the history
  • Loading branch information
calcitem committed May 19, 2021
1 parent 40a193c commit ca6d9a2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/ui/flutter_app/lib/style/app_theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class AppTheme {
static var toolbarTextColor = toolbarIconColor;
static var moveHistoryTextColor = Colors.yellow;
static var moveHistoryDialogBackgroundColor = Colors.transparent;
static var infoDialogackgroundColor = moveHistoryDialogBackgroundColor;
static var infoDialogBackgroundColor = moveHistoryDialogBackgroundColor;
static var infoTextColor = moveHistoryTextColor;
static var simpleDialogOptionTextColor = appPrimaryColor;

Expand Down Expand Up @@ -60,7 +60,7 @@ class AppTheme {
static var drawerAnimationIconColor = Colors.white;
static var exitIconColor = Colors.red;
static var drawerSplashColor = Colors.grey.withOpacity(0.1); // TODO: no use?
static var drawerHightlightColor = Colors.transparent; // TODO: no use?
static var drawerHighlightColor = Colors.transparent; // TODO: no use?
static var navigationHomeScreenBackgroundColor =
UIColors.nearlyWhite; // TODO: no use?

Expand Down
5 changes: 3 additions & 2 deletions src/ui/flutter_app/lib/widgets/game_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ class _GamePageState extends State<GamePage> with RouteAware {
barrierDismissible: true,
builder: (BuildContext context) {
return AlertDialog(
backgroundColor: AppTheme.infoDialogackgroundColor,
backgroundColor: AppTheme.infoDialogBackgroundColor,
content: SingleChildScrollView(
child: Text(analyzeText, style: AppTheme.moveHistoryTextStyle)),
actions: <Widget>[
Expand Down Expand Up @@ -860,7 +860,8 @@ class _GamePageState extends State<GamePage> with RouteAware {
}

Widget createBoard() {
boardWidth = MediaQuery.of(context).size.width - GamePage.screenPaddingH * 2;
boardWidth =
MediaQuery.of(context).size.width - GamePage.screenPaddingH * 2;

return Container(
margin: EdgeInsets.symmetric(
Expand Down
2 changes: 1 addition & 1 deletion src/ui/flutter_app/lib/widgets/home_drawer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ class _HomeDrawerState extends State<HomeDrawer> {
color: Colors.transparent,
child: InkWell(
splashColor: AppTheme.drawerSplashColor,
highlightColor: AppTheme.drawerHightlightColor,
highlightColor: AppTheme.drawerHighlightColor,
onTap: () {
navigationToScreen(listItem.index);
},
Expand Down

0 comments on commit ca6d9a2

Please sign in to comment.