start tor with app in main

This commit is contained in:
Josh Babb 2023-05-17 17:21:45 -05:00
parent 844e05a42b
commit 354f267942

View file

@ -11,6 +11,7 @@ import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_libmonero/monero/monero.dart';
import 'package:flutter_libmonero/wownero/wownero.dart';
import 'package:tor/tor.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
import 'package:google_fonts/google_fonts.dart';
@ -181,6 +182,9 @@ void main() async {
monero.onStartup();
wownero.onStartup();
dynamic tor = Tor();
tor.start();
// SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual,
// overlays: [SystemUiOverlay.bottom]);
await NotificationApi.init();