-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: send asset improvements (#131)
chore: add an actions button on the transaction details screen for both NFT and coin send flows (view on explorer and share) chore: add support for NFT on transaction status modal (the design right now doesn't fit the figma because we use the old design that we made for send coin flow, the final decision for it hasn't been made so as is) <img width="486" alt="Screenshot 2024-07-31 at 19 50 17" src="https://github.com/user-attachments/assets/69e0945b-3dc4-4bb1-8159-0d957eacf126"> <img width="486" alt="Screenshot 2024-07-31 at 19 50 06" src="https://github.com/user-attachments/assets/3a031fec-64a3-4fbb-9c05-2ed419869bb1"> <img width="486" alt="Screenshot 2024-07-31 at 19 48 05" src="https://github.com/user-attachments/assets/9cc68d69-9a66-4393-8978-b1e9a89ade8f">
- Loading branch information
1 parent
720fdd8
commit d3a5ffa
Showing
13 changed files
with
99 additions
and
19 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
lib/app/features/wallet/views/pages/transaction_details/transaction_details_actions.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:ice/app/components/button/button.dart'; | ||
import 'package:ice/app/extensions/extensions.dart'; | ||
import 'package:ice/generated/assets.gen.dart'; | ||
|
||
class TransactionDetailsActions extends StatelessWidget { | ||
const TransactionDetailsActions({ | ||
required this.onViewOnExplorer, | ||
required this.onShare, | ||
super.key, | ||
}); | ||
|
||
final VoidCallback onViewOnExplorer; | ||
final VoidCallback onShare; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Row( | ||
children: [ | ||
Expanded( | ||
child: Button( | ||
type: ButtonType.outlined, | ||
label: Text( | ||
context.i18n.transaction_details_view_on_explorer, | ||
), | ||
mainAxisSize: MainAxisSize.max, | ||
leadingIcon: Assets.images.icons.iconButtonInternet.icon(), | ||
onPressed: onViewOnExplorer, | ||
backgroundColor: context.theme.appColors.tertararyBackground, | ||
borderColor: context.theme.appColors.onTerararyFill, | ||
), | ||
), | ||
SizedBox( | ||
width: 12.0.s, | ||
), | ||
Button.icon( | ||
icon: Assets.images.icons.iconButtonShare.icon(), | ||
type: ButtonType.outlined, | ||
onPressed: onShare, | ||
backgroundColor: context.theme.appColors.tertararyBackground, | ||
borderColor: context.theme.appColors.onTerararyFill, | ||
), | ||
], | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters