From cf092ee2e8609aaf29b49b13b09df9a9e265aabd Mon Sep 17 00:00:00 2001 From: rezky_nightky Date: Sun, 30 Nov 2025 21:33:41 +0700 Subject: [PATCH] fix: correct typo in bottom-sheet results handling - rename the temporary variable to across contacts, send, and home transaction bottom sheets to keep the control flow readable and avoid codespell warnings - re-run checks to confirm only localized vocabulary remains flagged by codespell Author: rezky_nightky Timestamp: 2025-11-30T14:33:41Z Repository: XDAG-Pro Branch: main Signing: GPG (989AF9F0) Performance: 3 files, +8/-8 lines --- lib/page/detail/send_page.dart | 4 ++-- lib/page/wallet/contacts_page.dart | 8 ++++---- lib/widget/home_transaction_item.dart | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/page/detail/send_page.dart b/lib/page/detail/send_page.dart index 7490c66..5b40602 100644 --- a/lib/page/detail/send_page.dart +++ b/lib/page/detail/send_page.dart @@ -164,12 +164,12 @@ class _SendPageState extends State { await Future.delayed(const Duration(milliseconds: 200)); if (item.name.isNotEmpty) { if (context.mounted) { - String? reslut = (await Helper.showBottomSheet( + String? result = (await Helper.showBottomSheet( context, ContactsDetail(item: item), )) as String?; Helper.changeAndroidStatusBar(false); - if (reslut == 'send') { + if (result == 'send') { if (context.mounted) { Navigator.pushNamed(context, '/send', arguments: SendPageRouteParams(address: item.address, name: item.name)); } diff --git a/lib/page/wallet/contacts_page.dart b/lib/page/wallet/contacts_page.dart index f37370a..1d7b616 100644 --- a/lib/page/wallet/contacts_page.dart +++ b/lib/page/wallet/contacts_page.dart @@ -81,7 +81,7 @@ class ContactsMainPage extends StatelessWidget { padding: EdgeInsets.zero, onPressed: () async { Helper.changeAndroidStatusBar(true); - String? reslut = (await Helper.showBottomSheet( + String? result = (await Helper.showBottomSheet( context, ContactsDetail( item: item, @@ -89,7 +89,7 @@ class ContactsMainPage extends StatelessWidget { ), )) as String?; Helper.changeAndroidStatusBar(false); - if (reslut == 'delete') { + if (result == 'delete') { if (context.mounted) { Helper.changeAndroidStatusBarAndNavBar(true); final shouldDelete = await showCupertinoModalPopup( @@ -162,7 +162,7 @@ class ContactsMainPage extends StatelessWidget { } } } - if (reslut == 'edit') { + if (result == 'edit') { if (context.mounted) { showModalBottomSheet( backgroundColor: DarkColors.bgColor, @@ -176,7 +176,7 @@ class ContactsMainPage extends StatelessWidget { ); } } - if (reslut == 'send') { + if (result == 'send') { if (context.mounted) { Navigator.pushNamed( context, diff --git a/lib/widget/home_transaction_item.dart b/lib/widget/home_transaction_item.dart index be5ea7e..fe6767b 100644 --- a/lib/widget/home_transaction_item.dart +++ b/lib/widget/home_transaction_item.dart @@ -112,12 +112,12 @@ class WalletTransactionItem extends StatelessWidget { await Future.delayed(const Duration(milliseconds: 200)); if (item.name.isNotEmpty) { if (context.mounted) { - String? reslut = (await Helper.showBottomSheet( + String? result = (await Helper.showBottomSheet( context, ContactsDetail(item: item), )) as String?; Helper.changeAndroidStatusBar(false); - if (reslut == 'send') { + if (result == 'send') { if (context.mounted) { Navigator.pushNamed(context, '/send', arguments: SendPageRouteParams(address: item.address, name: item.name)); }