Use white logo on dark mode login

This commit is contained in:
Hillel Coren 2021-08-17 11:20:34 +03:00
parent 4495856445
commit d6161e94c7
7 changed files with 10 additions and 8 deletions

View File

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
assets/images/logo_dark.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

View File

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

View File

@ -289,8 +289,8 @@ class _LoginState extends State<LoginView> {
// TODO correct this
child: Image.asset(
state.prefState.enableDarkMode
? 'assets/images/icon.png'
: 'assets/images/logo.png',
? 'assets/images/logo_dark.png'
: 'assets/images/logo_light.png',
height: 50),
onTap: isApple()
? null
@ -613,7 +613,7 @@ class _LoginState extends State<LoginView> {
else
ClipOval(
child: Image.asset(
'assets/images/google-icon.png',
'assets/images/google_logo.png',
width: 30,
height: 30),
),

View File

@ -82,6 +82,7 @@ flutter:
assets:
- assets/images/icon.png
- assets/images/logo.png
- assets/images/google-icon.png
- assets/images/logo_light.png
- assets/images/logo_dark.png
- assets/images/google_logo.png
- assets/images/payment_types/

View File

@ -83,6 +83,7 @@ flutter:
assets:
- assets/images/icon.png
- assets/images/logo.png
- assets/images/google-icon.png
- assets/images/logo_light.png
- assets/images/logo_dark.png
- assets/images/google_logo.png
- assets/images/payment_types/

View File

@ -19,7 +19,7 @@
],
"icons": [
{
"src": "images/logo.png",
"src": "images/icon.png",
"sizes": "512x512",
"type": "image/png"
}