diff --git a/lib/authentication/login/views/login_page.dart b/lib/authentication/login/views/login_page.dart index a44ed0ee5f..0f7ee0a981 100644 --- a/lib/authentication/login/views/login_page.dart +++ b/lib/authentication/login/views/login_page.dart @@ -106,10 +106,15 @@ class _LoginPageScaffoldState extends State { // verify theme light Resources.images.login.gridImage, ), - const Positioned( + Positioned( bottom: 16, left: 16, - child: AppVersionWidget(), + child: AppVersionWidget( + color: ArDriveTheme.of(context) + .themeData + .colors + .themeFgDefault, + ), ), ], ), @@ -146,7 +151,12 @@ class _LoginPageScaffoldState extends State { bottom: 16, child: SizedBox( width: MediaQuery.of(context).size.width - 32, - child: const AppVersionWidget(), + child: AppVersionWidget( + color: ArDriveTheme.of(context) + .themeData + .colors + .themeFgDefault, + ), ), ), ], diff --git a/lib/components/app_version_widget.dart b/lib/components/app_version_widget.dart index 47b2ab4d7b..f905a66c21 100644 --- a/lib/components/app_version_widget.dart +++ b/lib/components/app_version_widget.dart @@ -6,7 +6,12 @@ import 'package:flutter/material.dart'; import 'package:package_info_plus/package_info_plus.dart'; class AppVersionWidget extends StatelessWidget { - const AppVersionWidget({Key? key}) : super(key: key); + final Color color; + + const AppVersionWidget({ + Key? key, + this.color = Colors.grey, + }) : super(key: key); @override Widget build(BuildContext context) { @@ -27,7 +32,7 @@ class AppVersionWidget extends StatelessWidget { return Text( appLocalizationsOf(context).appVersion(literalVersion), style: ArDriveTypography.body.buttonNormalRegular( - color: Colors.grey, + color: color, ), textAlign: TextAlign.center, );