mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2025-12-22 16:34:23 +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(),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user