Flutter example app: remove calls to inexistent field

This commit is contained in:
ok300
2024-05-15 09:58:43 +02:00
parent ce0cd99b86
commit fd5a233e91

View File

@@ -106,11 +106,7 @@ class _MyAppState extends State<MyApp> {
return const Text('Loading...'); return const Text('Loading...');
} }
if (snapshot.requireData.pairHash.isEmpty) {
return const Text('No pair hash.');
}
final prepareReceiveResponse = snapshot.data!; final prepareReceiveResponse = snapshot.data!;
debugPrint(prepareReceiveResponse.pairHash);
return Column( return Column(
children: [ children: [
@@ -121,9 +117,6 @@ class _MyAppState extends State<MyApp> {
style: Theme.of(context).textTheme.headlineSmall, style: Theme.of(context).textTheme.headlineSmall,
), ),
), ),
ListTile(
title: Text("Pair Hash: ${prepareReceiveResponse.pairHash}"),
),
ListTile( ListTile(
title: Text("Payer Amount: ${prepareReceiveResponse.payerAmountSat} (in sats)"), title: Text("Payer Amount: ${prepareReceiveResponse.payerAmountSat} (in sats)"),
), ),