Skip to content

Commit

Permalink
Re-enable CurrencyConverterDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
erdemyerebasmaz committed Jun 27, 2024
1 parent b94a642 commit 75b3a65
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/widgets/amount_form_field/amount_form_field.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import 'package:breez_translations/generated/breez_translations.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:l_breez/bloc/currency/currency_bloc.dart';
import 'package:l_breez/models/currency.dart';
import 'package:l_breez/theme/theme_provider.dart';
import 'package:l_breez/utils/fiat_conversion.dart';

import 'sat_amount_form_field_formatter.dart';
import 'package:l_breez/widgets/amount_form_field/currency_converter_dialog.dart';
import 'package:l_breez/widgets/amount_form_field/sat_amount_form_field_formatter.dart';

class AmountFormField extends TextFormField {
final FiatConversion? fiatConversion;
Expand Down Expand Up @@ -42,16 +45,14 @@ class AmountFormField extends TextFormField {
labelText: texts.amount_form_denomination(
bitcoinCurrency.displayName,
),
// TODO: Liquid - Hide CurrencyConverterDialog button until Fiat Currencies are supported on Liquid SDK
/*
suffixIcon: (readOnly ?? false)
? null
: IconButton(
icon: Image.asset(
(fiatConversion?.currencyData != null)
? fiatConversion!.logoPath
: "src/icon/btc_convert.png",
color: iconColor ?? theme.BreezColors.white[500],
color: iconColor ?? BreezColors.white[500],
),
padding: const EdgeInsets.only(top: 21.0),
alignment: Alignment.bottomRight,
Expand All @@ -70,7 +71,6 @@ class AmountFormField extends TextFormField {
),
),
),
*/
),
inputFormatters: bitcoinCurrency != BitcoinCurrency.SAT
? [
Expand Down

0 comments on commit 75b3a65

Please sign in to comment.