Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENV-710: temporarily hard code fee warning message #1124

Merged
merged 1 commit into from
May 20, 2024
Merged
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
7 changes: 4 additions & 3 deletions lib/ui/home/cards/accounts/spend/tx_review.dart
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ class _TxReviewState extends ConsumerState<TxReview> {
}

bool hapticCalled = false;

void addHapticFeedback() async {
if (hapticCalled) return;
hapticCalled = true;
Expand Down Expand Up @@ -612,7 +613,7 @@ class _TransactionReviewScreenState
Padding(
padding: const EdgeInsets.only(
top: EnvoySpacing.small),
child: feeOverSpendWarning(),
child: feeOverSpendWarning(feePercentage),
),
]),

Expand Down Expand Up @@ -650,7 +651,7 @@ class _TransactionReviewScreenState
);
}

Widget feeOverSpendWarning() {
Widget feeOverSpendWarning(int feePercentage) {
return Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Expand All @@ -659,7 +660,7 @@ class _TransactionReviewScreenState
child: EnvoyIcon(EnvoyIcons.alert,
size: EnvoyIconSize.extraSmall, color: EnvoyColors.copper500),
),
Text(S().coincontrol_tx_detail_custom_fee_insufficients_funds_25_cta,
Text("Fee is $feePercentage% of total amount", // TODO: Figma
style:
EnvoyTypography.button.copyWith(color: EnvoyColors.copper500)),
],
Expand Down
Loading