Skip to content

Commit

Permalink
send page fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mocodesmo committed Mar 4, 2024
1 parent bc44126 commit a6286bc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/send/send_page2.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:bb_mobile/_pkg/barcode.dart';
import 'package:bb_mobile/_pkg/boltz/swap.dart';
import 'package:bb_mobile/_pkg/bull_bitcoin_api.dart';
import 'package:bb_mobile/_pkg/clipboard.dart';
import 'package:bb_mobile/_pkg/file_storage.dart';
import 'package:bb_mobile/_pkg/mempool_api.dart';
import 'package:bb_mobile/_pkg/storage/hive.dart';
Expand Down Expand Up @@ -308,11 +309,11 @@ class _AddressFieldState extends State<AddressField> {
children: [
IconButton(
onPressed: () async {
// if (!locator.isRegistered<Clippboard>()) return;
// final data = await locator<Clippboard>().paste();
// if (data == null) return;
const d = 'tb1qytdqntr4xuee2y5qtu8r2q8ya0fqluy7dtp4lg';
context.read<SendCubit>().updateAddress(d);
if (!locator.isRegistered<Clippboard>()) return;
final data = await locator<Clippboard>().paste();
if (data == null) return;
// const d = 'tb1qytdqntr4xuee2y5qtu8r2q8ya0fqluy7dtp4lg';
context.read<SendCubit>().updateAddress(data);
},
iconSize: 16,
visualDensity: VisualDensity.compact,
Expand Down

0 comments on commit a6286bc

Please sign in to comment.