Skip to content

Commit

Permalink
Remove maxChannelReserve message from UI
Browse files Browse the repository at this point in the history
  • Loading branch information
erdemyerebasmaz committed Jul 15, 2023
1 parent 4d0fbfe commit 3dcce96
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import 'package:auto_size_text/auto_size_text.dart';
import 'package:breez_translations/breez_translations_locales.dart';
import 'package:c_breez/bloc/account/account_state.dart';
import 'package:c_breez/bloc/currency/currency_bloc.dart';
import 'package:c_breez/bloc/currency/currency_state.dart';
import 'package:c_breez/theme/theme_provider.dart' as theme;
import 'package:c_breez/widgets/warning_box.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';

Expand All @@ -23,7 +21,6 @@ class ReceiveOptionsBottomSheet extends StatelessWidget {
@override
Widget build(BuildContext context) {
final texts = context.texts();
final themeData = Theme.of(context);

return BlocBuilder<CurrencyBloc, CurrencyState>(
builder: (context, currencyState) {
Expand Down Expand Up @@ -71,23 +68,6 @@ class ReceiveOptionsBottomSheet extends StatelessWidget {
),
onTap: () => _push(context, "/buy_bitcoin"),
),
account.maxChanReserve == 0
? const SizedBox(height: 8.0)
: WarningBox(
boxPadding: const EdgeInsets.all(16),
contentPadding: const EdgeInsets.all(8),
child: AutoSizeText(
texts.bottom_action_bar_warning_balance_title(
currencyState.bitcoinCurrency.format(
account.maxChanReserve,
removeTrailingZeros: true,
),
),
maxFontSize: themeData.textTheme.titleMedium!.fontSize!,
style: themeData.textTheme.titleLarge,
textAlign: TextAlign.center,
),
),
],
);
},
Expand Down

0 comments on commit 3dcce96

Please sign in to comment.