mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 12:09:43 +00:00
more code cleanup
This commit is contained in:
parent
ac2d4a6c96
commit
d9c5629180
4 changed files with 0 additions and 21 deletions
|
@ -41,8 +41,6 @@ import 'package:uni_links/uni_links.dart';
|
||||||
import 'package:cw_core/unspent_coins_info.dart';
|
import 'package:cw_core/unspent_coins_info.dart';
|
||||||
import 'package:cake_wallet/monero/monero.dart';
|
import 'package:cake_wallet/monero/monero.dart';
|
||||||
import 'package:cw_core/cake_hive.dart';
|
import 'package:cw_core/cake_hive.dart';
|
||||||
import 'package:breez_sdk/breez_sdk.dart';
|
|
||||||
import 'package:breez_sdk/bridge_generated.dart';
|
|
||||||
|
|
||||||
final navigatorKey = GlobalKey<NavigatorState>();
|
final navigatorKey = GlobalKey<NavigatorState>();
|
||||||
final rootKey = GlobalKey<RootState>();
|
final rootKey = GlobalKey<RootState>();
|
||||||
|
@ -66,11 +64,6 @@ Future<void> main() async {
|
||||||
|
|
||||||
await initializeAppConfigs();
|
await initializeAppConfigs();
|
||||||
|
|
||||||
// breez:
|
|
||||||
// BreezDateUtils.setupLocales();
|
|
||||||
// BreezLogger();
|
|
||||||
|
|
||||||
|
|
||||||
runApp(App());
|
runApp(App());
|
||||||
}, (error, stackTrace) async {
|
}, (error, stackTrace) async {
|
||||||
ExceptionHandler.onError(FlutterErrorDetails(exception: error, stack: stackTrace));
|
ExceptionHandler.onError(FlutterErrorDetails(exception: error, stack: stackTrace));
|
||||||
|
|
|
@ -663,10 +663,6 @@ Route<dynamic> createRoute(RouteSettings settings) {
|
||||||
return CupertinoPageRoute<void>(
|
return CupertinoPageRoute<void>(
|
||||||
fullscreenDialog: true, builder: (_) => getIt.get<LightningInvoicePage>(param1: args));
|
fullscreenDialog: true, builder: (_) => getIt.get<LightningInvoicePage>(param1: args));
|
||||||
|
|
||||||
// case Routes.lightningSettings:
|
|
||||||
// return CupertinoPageRoute<void>(
|
|
||||||
// fullscreenDialog: true, builder: (_) => getIt.get<LightningSendPage>());
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return MaterialPageRoute<void>(
|
return MaterialPageRoute<void>(
|
||||||
builder: (_) => Scaffold(
|
builder: (_) => Scaffold(
|
||||||
|
|
|
@ -228,13 +228,6 @@ class LightningInvoicePage extends BasePage {
|
||||||
});
|
});
|
||||||
|
|
||||||
reaction((_) => lightningInvoicePageViewModel.state, (ExecutionState state) {
|
reaction((_) => lightningInvoicePageViewModel.state, (ExecutionState state) {
|
||||||
// if (state is ExecutedSuccessfullyState) {
|
|
||||||
// // Navigator.pushNamed(context, Routes.anonPayReceivePage, arguments: state.payload);
|
|
||||||
// lightningViewModel.createInvoice(
|
|
||||||
// amount: state.payload["amount"] as String,
|
|
||||||
// description: state.payload["description"] as String?,
|
|
||||||
// );
|
|
||||||
// }
|
|
||||||
|
|
||||||
if (state is ExecutedSuccessfullyState) {
|
if (state is ExecutedSuccessfullyState) {
|
||||||
showPopUp<void>(
|
showPopUp<void>(
|
||||||
|
|
|
@ -10,9 +10,6 @@ class LightningViewModel = LightningViewModelBase with _$LightningViewModel;
|
||||||
abstract class LightningViewModelBase with Store {
|
abstract class LightningViewModelBase with Store {
|
||||||
LightningViewModelBase() {}
|
LightningViewModelBase() {}
|
||||||
|
|
||||||
// @observable
|
|
||||||
// ExecutionState state;
|
|
||||||
|
|
||||||
Future<List<String>> receiveOnchain() async {
|
Future<List<String>> receiveOnchain() async {
|
||||||
final sdk = await BreezSDK();
|
final sdk = await BreezSDK();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue