mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2025-12-22 08:24:21 +01:00
Remove tokio runtime (#239)
* Remove obsolete Tokio runtime dependency on bindings * Apply changes on example app * Update "Getting Started" on README * Update pubspec.lock
This commit is contained in:
@@ -19,7 +19,7 @@ class Balance extends StatelessWidget {
|
||||
return const Center(child: Text('Loading...'));
|
||||
}
|
||||
|
||||
if (walletInfoSnapshot.requireData.balanceSat.isNaN) {
|
||||
if (walletInfoSnapshot.requireData.balanceSat != BigInt.zero) {
|
||||
return const Center(child: Text('No balance.'));
|
||||
}
|
||||
final walletInfo = walletInfoSnapshot.data!;
|
||||
@@ -34,13 +34,13 @@ class Balance extends StatelessWidget {
|
||||
"${walletInfo.balanceSat} sats",
|
||||
style: Theme.of(context).textTheme.headlineLarge?.copyWith(color: Colors.blue),
|
||||
),
|
||||
if (walletInfo.pendingReceiveSat != 0) ...[
|
||||
if (walletInfo.pendingReceiveSat != BigInt.zero) ...[
|
||||
Text(
|
||||
"Pending Receive: ${walletInfo.pendingReceiveSat} sats",
|
||||
style: Theme.of(context).textTheme.labelSmall?.copyWith(color: Colors.blueGrey),
|
||||
),
|
||||
],
|
||||
if (walletInfo.pendingSendSat != 0) ...[
|
||||
if (walletInfo.pendingSendSat != BigInt.zero) ...[
|
||||
Text(
|
||||
"Pending Send: ${walletInfo.pendingSendSat} sats",
|
||||
style: Theme.of(context).textTheme.labelSmall?.copyWith(color: Colors.blueGrey),
|
||||
|
||||
Reference in New Issue
Block a user