mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-22 11:29:23 +00:00
hide exchange toggle on disabled platforms
This commit is contained in:
parent
1ce4bee68c
commit
dbf68f2a68
2 changed files with 89 additions and 83 deletions
|
@ -184,9 +184,11 @@ class AdvancedSettingsView extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
// showExchange pref.
|
||||
if (Constants.enableExchange)
|
||||
const SizedBox(
|
||||
height: 8,
|
||||
),
|
||||
if (Constants.enableExchange)
|
||||
RoundedWhiteContainer(
|
||||
child: Consumer(
|
||||
builder: (_, ref, __) {
|
||||
|
|
|
@ -17,6 +17,7 @@ import '../../../../pages/settings_views/global_settings_view/advanced_views/man
|
|||
import '../../../../providers/global/prefs_provider.dart';
|
||||
import '../../../../themes/stack_colors.dart';
|
||||
import '../../../../utilities/assets.dart';
|
||||
import '../../../../utilities/constants.dart';
|
||||
import '../../../../utilities/text_styles.dart';
|
||||
import '../../../../widgets/custom_buttons/draggable_switch_button.dart';
|
||||
import '../../../../widgets/desktop/primary_button.dart';
|
||||
|
@ -163,12 +164,14 @@ class _AdvancedSettings extends ConsumerState<AdvancedSettings> {
|
|||
),
|
||||
),
|
||||
// showExchange pref.
|
||||
if (Constants.enableExchange)
|
||||
const Padding(
|
||||
padding: EdgeInsets.all(10.0),
|
||||
child: Divider(
|
||||
thickness: 0.5,
|
||||
),
|
||||
),
|
||||
if (Constants.enableExchange)
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(10),
|
||||
child: Row(
|
||||
|
@ -176,7 +179,8 @@ class _AdvancedSettings extends ConsumerState<AdvancedSettings> {
|
|||
children: [
|
||||
Text(
|
||||
"Enable exchange features",
|
||||
style: STextStyles.desktopTextExtraSmall(context)
|
||||
style:
|
||||
STextStyles.desktopTextExtraSmall(context)
|
||||
.copyWith(
|
||||
color: Theme.of(context)
|
||||
.extension<StackColors>()!
|
||||
|
|
Loading…
Reference in a new issue