mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-24 11:15:58 +00:00
fix desktop wallet network settings layout
This commit is contained in:
parent
0b95afc62f
commit
dcdad38ec7
2 changed files with 26 additions and 20 deletions
|
@ -15,11 +15,9 @@ import 'package:event_bus/event_bus.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
import 'package:flutter_svg/svg.dart';
|
import 'package:flutter_svg/svg.dart';
|
||||||
import '../../global_settings_view/manage_nodes_views/add_edit_node_view.dart';
|
import 'package:tuple/tuple.dart';
|
||||||
import '../../global_settings_view/tor_settings/tor_settings_view.dart';
|
import 'package:wakelock/wakelock.dart';
|
||||||
import '../../sub_widgets/nodes_list.dart';
|
|
||||||
import 'sub_widgets/confirm_full_rescan.dart';
|
|
||||||
import 'sub_widgets/rescanning_dialog.dart';
|
|
||||||
import '../../../../providers/providers.dart';
|
import '../../../../providers/providers.dart';
|
||||||
import '../../../../route_generator.dart';
|
import '../../../../route_generator.dart';
|
||||||
import '../../../../services/event_bus/events/global/blocks_remaining_event.dart';
|
import '../../../../services/event_bus/events/global/blocks_remaining_event.dart';
|
||||||
|
@ -53,8 +51,11 @@ import '../../../../widgets/rounded_container.dart';
|
||||||
import '../../../../widgets/rounded_white_container.dart';
|
import '../../../../widgets/rounded_white_container.dart';
|
||||||
import '../../../../widgets/stack_dialog.dart';
|
import '../../../../widgets/stack_dialog.dart';
|
||||||
import '../../../../widgets/tor_subscription.dart';
|
import '../../../../widgets/tor_subscription.dart';
|
||||||
import 'package:tuple/tuple.dart';
|
import '../../global_settings_view/manage_nodes_views/add_edit_node_view.dart';
|
||||||
import 'package:wakelock/wakelock.dart';
|
import '../../global_settings_view/tor_settings/tor_settings_view.dart';
|
||||||
|
import '../../sub_widgets/nodes_list.dart';
|
||||||
|
import 'sub_widgets/confirm_full_rescan.dart';
|
||||||
|
import 'sub_widgets/rescanning_dialog.dart';
|
||||||
|
|
||||||
/// [eventBus] should only be set during testing
|
/// [eventBus] should only be set during testing
|
||||||
class WalletNetworkSettingsView extends ConsumerStatefulWidget {
|
class WalletNetworkSettingsView extends ConsumerStatefulWidget {
|
||||||
|
|
|
@ -14,6 +14,8 @@ import 'package:event_bus/event_bus.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
import 'package:flutter_svg/svg.dart';
|
import 'package:flutter_svg/svg.dart';
|
||||||
|
import 'package:tuple/tuple.dart';
|
||||||
|
|
||||||
import '../../../../pages/settings_views/wallet_settings_view/wallet_network_settings_view/wallet_network_settings_view.dart';
|
import '../../../../pages/settings_views/wallet_settings_view/wallet_network_settings_view/wallet_network_settings_view.dart';
|
||||||
import '../../../../providers/providers.dart';
|
import '../../../../providers/providers.dart';
|
||||||
import '../../../../route_generator.dart';
|
import '../../../../route_generator.dart';
|
||||||
|
@ -26,7 +28,6 @@ import '../../../../utilities/text_styles.dart';
|
||||||
import '../../../../utilities/util.dart';
|
import '../../../../utilities/util.dart';
|
||||||
import '../../../../widgets/desktop/desktop_dialog.dart';
|
import '../../../../widgets/desktop/desktop_dialog.dart';
|
||||||
import '../../../../widgets/desktop/desktop_dialog_close_button.dart';
|
import '../../../../widgets/desktop/desktop_dialog_close_button.dart';
|
||||||
import 'package:tuple/tuple.dart';
|
|
||||||
|
|
||||||
class NetworkInfoButton extends ConsumerStatefulWidget {
|
class NetworkInfoButton extends ConsumerStatefulWidget {
|
||||||
const NetworkInfoButton({
|
const NetworkInfoButton({
|
||||||
|
@ -226,7 +227,7 @@ class _NetworkInfoButtonState extends ConsumerState<NetworkInfoButton> {
|
||||||
return [
|
return [
|
||||||
FadePageRoute(
|
FadePageRoute(
|
||||||
DesktopDialog(
|
DesktopDialog(
|
||||||
maxHeight: MediaQuery.of(context).size.height - 64,
|
maxHeight: null,
|
||||||
maxWidth: 580,
|
maxWidth: 580,
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
@ -251,17 +252,21 @@ class _NetworkInfoButtonState extends ConsumerState<NetworkInfoButton> {
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
Flexible(
|
||||||
padding: const EdgeInsets.only(
|
child: Padding(
|
||||||
top: 16,
|
padding: const EdgeInsets.only(
|
||||||
left: 32,
|
top: 16,
|
||||||
right: 32,
|
left: 32,
|
||||||
bottom: 32,
|
right: 32,
|
||||||
),
|
bottom: 32,
|
||||||
child: WalletNetworkSettingsView(
|
),
|
||||||
walletId: walletId,
|
child: SingleChildScrollView(
|
||||||
initialSyncStatus: _currentSyncStatus,
|
child: WalletNetworkSettingsView(
|
||||||
initialNodeStatus: _currentNodeStatus,
|
walletId: walletId,
|
||||||
|
initialSyncStatus: _currentSyncStatus,
|
||||||
|
initialNodeStatus: _currentNodeStatus,
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue