From b915b266ae515bcdbc587c2cb337d594c032b0a5 Mon Sep 17 00:00:00 2001 From: julian Date: Wed, 2 Nov 2022 10:09:42 -0600 Subject: [PATCH] imports fix --- .../advanced_settings/advanced_settings.dart | 29 +++++++++---------- .../home/desktop_settings_view.dart | 2 +- lib/route_generator.dart | 2 +- 3 files changed, 16 insertions(+), 17 deletions(-) diff --git a/lib/pages_desktop_specific/home/advanced_settings/advanced_settings.dart b/lib/pages_desktop_specific/home/advanced_settings/advanced_settings.dart index 85eca20c0..7361d9773 100644 --- a/lib/pages_desktop_specific/home/advanced_settings/advanced_settings.dart +++ b/lib/pages_desktop_specific/home/advanced_settings/advanced_settings.dart @@ -1,8 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:flutter/src/widgets/framework.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:flutter_svg/svg.dart'; -import 'package:stackwallet/pages_desktop_specific/home/advanced_settings/debug_info_dialog.dart'; import 'package:stackwallet/pages_desktop_specific/home/advanced_settings/stack_privacy_dialog.dart'; import 'package:stackwallet/providers/global/prefs_provider.dart'; import 'package:stackwallet/utilities/assets.dart'; @@ -167,7 +165,7 @@ class _AdvancedSettings extends ConsumerState { .textDark), textAlign: TextAlign.left, ), - ShowLogsButton(), + const ShowLogsButton(), ], ), ), @@ -192,7 +190,7 @@ class StackPrivacyButton extends ConsumerWidget { useSafeArea: false, barrierDismissible: true, builder: (context) { - return StackPrivacyDialog(); + return const StackPrivacyDialog(); }, ); } @@ -225,19 +223,20 @@ class ShowLogsButton extends ConsumerWidget { const ShowLogsButton({ Key? key, }) : super(key: key); + + Future viewDebugLogs() async { + // await showDialog( + // context: context, + // useSafeArea: false, + // barrierDismissible: true, + // builder: (context) { + // return const DebugInfoDialog(); + // }, + // ); + } + @override Widget build(BuildContext context, WidgetRef ref) { - Future viewDebugLogs() async { - await showDialog( - context: context, - useSafeArea: false, - barrierDismissible: true, - builder: (context) { - return const DebugInfoDialog(); - }, - ); - } - return SizedBox( width: 101, height: 37, diff --git a/lib/pages_desktop_specific/home/desktop_settings_view.dart b/lib/pages_desktop_specific/home/desktop_settings_view.dart index 719a37a3a..34cb07f27 100644 --- a/lib/pages_desktop_specific/home/desktop_settings_view.dart +++ b/lib/pages_desktop_specific/home/desktop_settings_view.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:stackwallet/pages_desktop_specific/home/settings_menu/advanced_settings.dart'; +import 'package:stackwallet/pages_desktop_specific/home/advanced_settings/advanced_settings.dart'; import 'package:stackwallet/pages_desktop_specific/home/settings_menu/appearance_settings.dart'; import 'package:stackwallet/pages_desktop_specific/home/settings_menu/backup_and_restore/backup_and_restore_settings.dart'; import 'package:stackwallet/pages_desktop_specific/home/settings_menu/currency_settings.dart'; diff --git a/lib/route_generator.dart b/lib/route_generator.dart index 136dc7a34..613e0d509 100644 --- a/lib/route_generator.dart +++ b/lib/route_generator.dart @@ -85,13 +85,13 @@ import 'package:stackwallet/pages/wallet_view/transaction_views/transaction_sear import 'package:stackwallet/pages/wallet_view/wallet_view.dart'; import 'package:stackwallet/pages/wallets_view/wallets_view.dart'; import 'package:stackwallet/pages_desktop_specific/create_password/create_password_view.dart'; +import 'package:stackwallet/pages_desktop_specific/home/advanced_settings/advanced_settings.dart'; import 'package:stackwallet/pages_desktop_specific/home/desktop_home_view.dart'; import 'package:stackwallet/pages_desktop_specific/home/desktop_settings_view.dart'; import 'package:stackwallet/pages_desktop_specific/home/my_stack_view/my_stack_view.dart'; import 'package:stackwallet/pages_desktop_specific/home/my_stack_view/wallet_view/desktop_wallet_view.dart'; import 'package:stackwallet/pages_desktop_specific/home/my_stack_view/wallet_view/sub_widgets/qr_code_desktop_popup_content.dart'; import 'package:stackwallet/pages_desktop_specific/home/my_stack_view/wallet_view/sub_widgets/wallet_keys_desktop_popup.dart'; -import 'package:stackwallet/pages_desktop_specific/home/settings_menu/advanced_settings.dart'; import 'package:stackwallet/pages_desktop_specific/home/settings_menu/appearance_settings.dart'; import 'package:stackwallet/pages_desktop_specific/home/settings_menu/backup_and_restore/backup_and_restore_settings.dart'; import 'package:stackwallet/pages_desktop_specific/home/settings_menu/currency_settings.dart';