mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2026-01-04 14:54:21 +01:00
[Flutter] Pass paymentsStream as a broadcast streams
This commit is contained in:
@@ -72,13 +72,13 @@ class _HomePageState extends State<HomePage> {
|
||||
Container(
|
||||
height: constraints.maxHeight * 0.3,
|
||||
color: Colors.white,
|
||||
child: Balance(walletInfoStream: walletInfoStream()),
|
||||
child: Balance(walletInfoStream: walletInfoStream().asBroadcastStream()),
|
||||
),
|
||||
Container(
|
||||
height: constraints.maxHeight * 0.7,
|
||||
color: Colors.white,
|
||||
child: PaymentList(
|
||||
paymentsStream: paymentsStream(),
|
||||
paymentsStream: paymentsStream().asBroadcastStream(),
|
||||
onRefresh: () async => await _sync(),
|
||||
),
|
||||
),
|
||||
@@ -91,7 +91,7 @@ class _HomePageState extends State<HomePage> {
|
||||
floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
|
||||
bottomNavigationBar: HomePageBottomAppBar(
|
||||
liquidSDK: widget.liquidSDK,
|
||||
paymentsStream: paymentsStream(),
|
||||
paymentsStream: paymentsStream().asBroadcastStream(),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
@@ -47,8 +47,10 @@ class HomePageBottomAppBar extends StatelessWidget {
|
||||
onPressed: () {
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (context) =>
|
||||
ReceivePaymentDialog(liquidSDK: liquidSDK, paymentsStream: paymentsStream),
|
||||
builder: (context) => ReceivePaymentDialog(
|
||||
liquidSDK: liquidSDK,
|
||||
paymentsStream: paymentsStream.asBroadcastStream(),
|
||||
),
|
||||
);
|
||||
},
|
||||
child: Text(
|
||||
|
||||
Reference in New Issue
Block a user