From f355334425d45b53a482a12b9fcc6a20baca9562 Mon Sep 17 00:00:00 2001 From: mocodesmo Date: Wed, 29 May 2024 09:44:10 +0530 Subject: [PATCH] settings - testnet button conditions --- lib/settings/bitcoin_settings_page.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/settings/bitcoin_settings_page.dart b/lib/settings/bitcoin_settings_page.dart index 206e6d0b..3ae98b1b 100644 --- a/lib/settings/bitcoin_settings_page.dart +++ b/lib/settings/bitcoin_settings_page.dart @@ -291,6 +291,8 @@ class TestNetButton extends StatelessWidget { Widget build(BuildContext context) { final testnet = context.select((NetworkCubit _) => _.state.testnet); + if (!testnet) return const SizedBox.shrink(); + return BlocListener( listenWhen: (previous, current) => previous.testnet != current.testnet, listener: (context, state) {