mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
use system navigator to exit
This commit is contained in:
parent
5fcf642a8b
commit
84108a3b27
1 changed files with 3 additions and 3 deletions
|
@ -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],
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue