add dialog header assets

This commit is contained in:
Adam Velebil 2022-09-07 17:16:29 +02:00
parent da068d2043
commit 714d18b848
No known key found for this signature in database
GPG Key ID: AC6D6B9D715FC084
3 changed files with 6 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

View File

@ -29,7 +29,6 @@ class BetaDialog {
context: context,
builder: (context) {
final isDarkTheme = Theme.of(context).brightness == Brightness.dark;
final color = isDarkTheme ? 'white' : 'green';
return WillPopScope(
onWillPop: () async => false,
child: AlertDialog(
@ -38,14 +37,16 @@ class BetaDialog {
mainAxisAlignment: MainAxisAlignment.start,
children: [
Image.asset(
'assets/graphics/yubico-$color.png',
alignment: Alignment.centerLeft,
height: 78,
isDarkTheme
? 'assets/graphics/beta-dark.png'
: 'assets/graphics/beta-light.png',
alignment: Alignment.topCenter,
height: 124,
filterQuality: FilterQuality.medium,
),
const SizedBox(height: 24),
Text(
'Welcome to Yubico Authenticator Beta',
'Welcome to Yubico Authenticator Beta!',
style: Theme.of(context).textTheme.headlineMedium?.copyWith(
color: isDarkTheme ? Colors.white : Colors.black),
textAlign: TextAlign.center,