Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/page/detail/send_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,12 @@ class _SendPageState extends State<SendPage> {
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));
}
Expand Down
8 changes: 4 additions & 4 deletions lib/page/wallet/contacts_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ 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,
canEdit: index != 0,
),
)) as String?;
Helper.changeAndroidStatusBar(false);
if (reslut == 'delete') {
if (result == 'delete') {
if (context.mounted) {
Helper.changeAndroidStatusBarAndNavBar(true);
final shouldDelete = await showCupertinoModalPopup(
Expand Down Expand Up @@ -162,7 +162,7 @@ class ContactsMainPage extends StatelessWidget {
}
}
}
if (reslut == 'edit') {
if (result == 'edit') {
if (context.mounted) {
showModalBottomSheet(
backgroundColor: DarkColors.bgColor,
Expand All @@ -176,7 +176,7 @@ class ContactsMainPage extends StatelessWidget {
);
}
}
if (reslut == 'send') {
if (result == 'send') {
if (context.mounted) {
Navigator.pushNamed(
context,
Expand Down
4 changes: 2 additions & 2 deletions lib/widget/home_transaction_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down