Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
ademar111190 committed Oct 10, 2023
1 parent 9b15013 commit ba275c5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 3 additions & 2 deletions lib/bloc/account/account_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import 'package:c_breez/bloc/account/payment_filters.dart';
import 'package:c_breez/bloc/account/payment_result.dart';
import 'package:c_breez/config.dart';
import 'package:connectivity_plus/connectivity_plus.dart';
import 'package:logging/logging.dart';
import 'package:flutter_fgbg/flutter_fgbg.dart';
import 'package:hydrated_bloc/hydrated_bloc.dart';
import 'package:logging/logging.dart';
import 'package:path/path.dart' as p;
import 'package:rxdart/rxdart.dart';

Expand Down Expand Up @@ -56,7 +56,8 @@ class AccountBloc extends Cubit<AccountState> with HydratedMixin {
_listenPaymentResultEvents();
}

// TODO: _watchAccountChanges listens to every change in the local storage and assemble a new account state accordingly
// TODO: _watchAccountChanges listens to every change in the local storage and assemble a new account state
// accordingly
_watchAccountChanges() {
return Rx.combineLatest3<List<sdk.Payment>, PaymentFilters, sdk.NodeState?, AccountState>(
_breezLib.paymentsStream,
Expand Down
6 changes: 4 additions & 2 deletions lib/bloc/input/input_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ class InputBloc extends Cubit<InputState> {
_lightningLinks.linksNotifications
.map((data) => InputData(data: data, source: InputSource.hyperlink))
.doOnData((event) => _log.fine("lightningLinks: $event")),
_device.clipboardStream.distinct().skip(1)
_device.clipboardStream
.distinct()
.skip(1)
.map((data) => InputData(data: data, source: InputSource.clipboard))
.doOnData((event) => _log.fine("clipboardStream: $event")),
]).asyncMap((input) async {
Expand Down Expand Up @@ -107,7 +109,7 @@ class InputBloc extends Cubit<InputState> {
result = InputState.nodeId(parsedInput.nodeId, source);
} else if (parsedInput is InputType_BitcoinAddress) {
result = InputState.bitcoinAddress(parsedInput.address, source);
} else if(parsedInput is InputType_Url) {
} else if (parsedInput is InputType_Url) {
result = InputState.url(parsedInput.url, source);
} else {
result = const InputState.empty();
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/create_invoice/create_invoice_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ import 'package:c_breez/widgets/keyboard_done_action.dart';
import 'package:c_breez/widgets/receivable_btc_box.dart';
import 'package:c_breez/widgets/single_button_bottom_bar.dart';
import 'package:c_breez/widgets/transparent_page_route.dart';
import 'package:logging/logging.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:logging/logging.dart';

final _log = Logger("CreateInvoicePage");

Expand Down

0 comments on commit ba275c5

Please sign in to comment.