use system navigator to exit

This commit is contained in:
julian 2022-12-09 15:50:17 -06:00
parent 5fcf642a8b
commit 84108a3b27

View file

@ -1,6 +1,5 @@
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:stackwallet/pages_desktop_specific/desktop_menu_item.dart';
@ -219,7 +218,8 @@ class _DesktopMenuState extends ConsumerState<DesktopMenu> {
value: 7,
onChanged: (_) {
// todo: save stuff/ notify before exit?
exit(0);
// exit(0);
SystemNavigator.pop();
},
controller: controllers[7],
),