From 4b1c85c4a8c6ee5eedf4708b63aefc30fd935294 Mon Sep 17 00:00:00 2001 From: NaiJi Date: Sun, 6 Aug 2023 20:32:05 -0300 Subject: [PATCH] chore: Add missing trailing commas to encryption key modal page --- .../backups/copy_encryption_key_modal.dart | 96 ++++++++++--------- 1 file changed, 49 insertions(+), 47 deletions(-) diff --git a/lib/ui/pages/backups/copy_encryption_key_modal.dart b/lib/ui/pages/backups/copy_encryption_key_modal.dart index aff629f7..42bc1ba9 100644 --- a/lib/ui/pages/backups/copy_encryption_key_modal.dart +++ b/lib/ui/pages/backups/copy_encryption_key_modal.dart @@ -52,57 +52,59 @@ class _CopyEncryptionKeyModalState extends State { ), const SizedBox(height: 8), Container( - decoration: BoxDecoration( - borderRadius: BorderRadius.circular(20), - color: Theme.of(context).colorScheme.surfaceVariant, - ), - padding: const EdgeInsets.all(16), - child: Stack( - children: [ - SelectableText( - encryptionKey, - style: Theme.of(context).textTheme.titleMedium?.copyWith( - color: Theme.of(context).colorScheme.onSurfaceVariant, + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(20), + color: Theme.of(context).colorScheme.surfaceVariant, + ), + padding: const EdgeInsets.all(16), + child: Stack( + children: [ + SelectableText( + encryptionKey, + style: Theme.of(context).textTheme.titleMedium?.copyWith( + color: Theme.of(context).colorScheme.onSurfaceVariant, + ), + ), + Positioned.fill( + child: InkWell( + onTap: () { + setState( + () { + isKeyVisible = !isKeyVisible; + }, + ); + }, + child: AnimatedOpacity( + duration: const Duration(milliseconds: 200), + opacity: isKeyVisible ? 0 : 1, + child: Container( + color: Theme.of(context).colorScheme.surfaceVariant, + child: Row( + crossAxisAlignment: CrossAxisAlignment.center, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const Icon(Icons.visibility_outlined), + const SizedBox(width: 8), + Text( + 'backup.backups_encryption_key_show'.tr(), + style: Theme.of(context) + .textTheme + .bodyMedium + ?.copyWith( + color: Theme.of(context) + .colorScheme + .onSurfaceVariant, + ), + ), + ], ), - ), - Positioned.fill( - child: InkWell( - onTap: () { - setState( - () { - isKeyVisible = !isKeyVisible; - }, - ); - }, - child: AnimatedOpacity( - duration: const Duration(milliseconds: 200), - opacity: isKeyVisible ? 0 : 1, - child: Container( - color: Theme.of(context).colorScheme.surfaceVariant, - child: Row( - crossAxisAlignment: CrossAxisAlignment.center, - mainAxisAlignment: MainAxisAlignment.center, - children: [ - const Icon(Icons.visibility_outlined), - const SizedBox(width: 8), - Text( - 'backup.backups_encryption_key_show'.tr(), - style: Theme.of(context) - .textTheme - .bodyMedium - ?.copyWith( - color: Theme.of(context) - .colorScheme - .onSurfaceVariant, - ), - ), - ], - )), ), ), ), - ], - )), + ), + ], + ), + ), const SizedBox(height: 8), FilledButton.icon( onPressed: () {