cake_wallet/lib/core/wallet_creation_service.dart
Rafael Saes 07a3622f55 Squashed commit of the following:
commit 1ca09e692d
Author: Serhii <borodenko.sv@gmail.com>
Date:   Thu Jun 29 16:44:31 2023 +0300

    Revert "Merge branch 'linux/password-direct-input' of https://github.com/cake-tech/cake_wallet into linux/password-direct-input"

    This reverts commit 424cf2e635, reversing
    changes made to e1fe03ca28.

commit 02eead0014
Author: Serhii <borodenko.sv@gmail.com>
Date:   Thu Jun 29 16:38:36 2023 +0300

    Revert " fix routing and context issue"

    This reverts commit e1fe03ca28.

commit 424cf2e635
Merge: e1fe03ca fc18b2dc
Author: Serhii <borodenko.sv@gmail.com>
Date:   Thu Jun 29 14:01:18 2023 +0300

    Merge branch 'linux/password-direct-input' of https://github.com/cake-tech/cake_wallet into linux/password-direct-input

commit e1fe03ca28
Author: Serhii <borodenko.sv@gmail.com>
Date:   Thu Jun 29 14:00:12 2023 +0300

     fix routing and context issue

commit fc18b2dc52
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Fri Jun 16 22:25:27 2023 +0300

    - Pump Linux version
    - Fix conflicts with main

commit 2da9112aa2
Merge: e592c892 3f2af133
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Fri Jun 16 22:14:52 2023 +0300

    Merge branch 'v4.6.7_v1.3.8' of https://github.com/cake-tech/cake_wallet into linux/password-direct-input

     Conflicts:
    	cw_bitcoin/lib/electrum_wallet.dart
    	lib/di.dart
    	lib/main.dart
    	lib/src/screens/dashboard/widgets/market_place_page.dart

commit 3f2af1334d
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Fri Jun 16 21:43:33 2023 +0300

    Pump app versions and update release notes

commit 8ffad4bf80
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Fri Jun 16 19:54:34 2023 +0300

    Revert removing swipe to delete wallet feature

commit 337bfd0527
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Fri Jun 16 17:05:00 2023 +0300

    - Replace payfura widget with direct browser link
    - Remove Payfura widget class as it is duplicate for the web view page

commit e592c892cc
Author: Rafael Saes <76502841+saltrafael@users.noreply.github.com>
Date:   Fri May 26 17:16:36 2023 -0300

    fix: theme refactor for wallet_unlock_page.dart (#951)

commit 76559e50d6
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Fri May 26 21:52:02 2023 +0300

    Remove secure storage

commit 825c99094f
Merge: 5ba313cb 19cbc40e
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Fri May 26 21:16:08 2023 +0300

    Merge branch 'main' of https://github.com/cake-tech/cake_wallet into linux/password-direct-input

commit 5ba313cb13
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Fri May 26 16:43:30 2023 +0300

    Fix Conflicts with main

commit 53d3db5340
Merge: 3ddb6c0a 75c65d67
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Fri May 26 15:09:55 2023 +0300

    Merge branch 'main' of https://github.com/cake-tech/cake_wallet into linux/password-direct-input

     Conflicts:
    	cw_core/lib/wallet_base.dart
    	lib/core/auth_service.dart
    	lib/di.dart
    	lib/main.dart
    	lib/router.dart
    	lib/routes.dart
    	lib/src/screens/dashboard/desktop_widgets/desktop_wallet_selection_dropdown.dart
    	lib/src/screens/restore/restore_wallet_from_seed_page.dart
    	lib/src/screens/settings/security_backup_page.dart
    	lib/src/screens/wallet_list/wallet_list_page.dart
    	lib/store/settings_store.dart
    	lib/view_model/wallet_creation_vm.dart
    	macos/Podfile.lock
    	pubspec_base.yaml
    	res/values/strings_bg.arb
    	res/values/strings_en.arb
    	res/values/strings_id.arb
    	res/values/strings_my.arb
    	res/values/strings_nl.arb
    	res/values/strings_pt.arb
    	res/values/strings_ru.arb
    	res/values/strings_th.arb
    	res/values/strings_tr.arb
    	res/values/strings_uk.arb
    	res/values/strings_ur.arb
    	res/values/strings_zh.arb

commit 3ddb6c0a40
Author: M <m@cakewallet.com>
Date:   Thu Apr 27 21:17:41 2023 -0400

    Add flatpak section to Linux build guide.

commit 89980cac5a
Author: M <m@cakewallet.com>
Date:   Thu Apr 27 20:51:35 2023 -0400

    Add flatpak manifest. Add desktop file for Linux.

commit 0dc2effe41
Author: M <m@cakewallet.com>
Date:   Tue Apr 25 16:44:14 2023 -0400

    Add check gcc and troubleshooting section to Linux build guide.

commit d4b96d6f98
Author: M <m@cakewallet.com>
Date:   Fri Apr 21 18:08:42 2023 -0400

    Add build guide for Linux.

commit c7138a9124
Author: M <m@cakewallet.com>
Date:   Fri Apr 21 18:06:05 2023 -0400

    Make `model_generator.sh` executable.

commit d45df36238
Author: M <m@cakewallet.com>
Date:   Fri Apr 21 18:02:19 2023 -0400

    Add ability to get random bytes on Linux. Used same method as in cake backups.

commit 5c2490e721
Author: M <m@cakewallet.com>
Date:   Fri Apr 21 15:55:26 2023 -0400

    Update boost version for Linux to 1.82. Update monero for Linux to 0.18.2.2.

commit d251539f13
Author: M <m@cakewallet.com>
Date:   Fri Apr 21 11:48:02 2023 -0400

    Change package_info to package_info_plus

commit a90966b640
Author: M <m@cakewallet.com>
Date:   Wed Apr 19 17:20:04 2023 -0400

    Remove unused constant MONERO_BLOCK_SIZE in ios/Classes/monero_api.cpp

commit d34dca99ed
Author: M <m@cakewallet.com>
Date:   Wed Apr 19 16:11:01 2023 -0400

    Remove duplication for routes. Removed unused constant and fixed TransactionInfoRow iterator for macos/Classes/monero_api.cpp.

commit 2ff6cf43b3
Merge: 2e19e9d2 27961f2f
Author: M <m@cakewallet.com>
Date:   Wed Apr 19 15:18:43 2023 -0400

    Merge branch 'main' of github.com:cake-tech/cake_wallet into linux/password-direct-input

commit 2e19e9d2b6
Author: M <m@cakewallet.com>
Date:   Tue Apr 18 16:45:32 2023 -0400

    Fixes for Linux build scripts. Fixes for load cw_monero on Linux. Catch exception for get PackageInfo in SettingsStore. Add `excludeFlutterSecureStorage` to app_config.sh for Linux. Add FUNCTION_VISABILITY_ATTRIBUTE for monero_api.cpp.

commit 9cd02b7541
Merge: 8efedbcc 786ba3b0
Author: M <m@cakewallet.com>
Date:   Tue Apr 18 15:45:32 2023 -0400

    Merge branch 'desktop-linux' of github.com:cake-tech/cake_wallet into linux/password-direct-input

commit 8efedbccf6
Author: M <m@cakewallet.com>
Date:   Thu Apr 13 19:48:51 2023 -0400

    Add ability to set custom data application directory

commit f52c45b167
Author: M <m@cakewallet.com>
Date:   Mon Apr 10 19:16:13 2023 -0400

    Change encryption method for electrum wallets is wallet password provides directly. Add ability to user for repeat wallets password and compare with original wallet password before wallet creation for cases when wallet password provides directly.

commit 3b82a390c1
Author: M <m@cakewallet.com>
Date:   Thu Mar 30 18:33:59 2023 -0400

    Add ability to enter wallet password directly. Add ability to build without flutter secure storage. Add `excludeFlutterSecureStorage` flag to too/configure.dart for settings for secure storage. Add wallet unlock screen.

commit a70b6f298c
Merge: f0164db4 14a4d413
Author: Omar Hatem <omarh.ismail1@gmail.com>
Date:   Mon Feb 27 15:11:54 2023 +0200

    Merge pull request #804 from cake-tech/desktop-ui-enhancements

    Desktop UI enhancements

commit 14a4d41339
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Sat Feb 25 00:07:15 2023 +0200

    Fixate MobX version to fix restore issue

commit e8fa3953b5
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Fri Feb 24 17:17:30 2023 +0200

    Fix Navigation animation for settings screens

commit 89aaa9bfef
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Fri Feb 24 15:49:37 2023 +0200

    Add back wallet settings page to desktop settings actions

commit 26a7bfcee5
Merge: f00dc913 f0164db4
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Fri Feb 24 15:39:01 2023 +0200

    Merge branch 'dashboard-desktop-view' of https://github.com/cake-tech/cake_wallet into desktop-ui-enhancements

commit f0164db47f
Merge: f050f022 143a6eec
Author: Omar Hatem <omarh.ismail1@gmail.com>
Date:   Fri Feb 24 15:38:35 2023 +0200

    Merge pull request #802 from cake-tech/CW-321-lock-app-feature-on-mac

    Add app lock feature on mac

commit 143a6eecf5
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Fri Feb 24 15:38:05 2023 +0200

    pop only PIN screen after successful auth

commit a210a1e325
Merge: 538220f7 f050f022
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Fri Feb 24 15:23:36 2023 +0200

    Merge branch 'dashboard-desktop-view' of https://github.com/cake-tech/cake_wallet into CW-321-lock-app-feature-on-mac

commit f00dc9132c
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Fri Feb 24 15:19:59 2023 +0200

    Fix UI issues
    Add missing translation

commit 05b1bb05c4
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Fri Feb 24 15:18:31 2023 +0200

    Enable adding contact from send screen

commit b7e9237963
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Fri Feb 24 15:18:01 2023 +0200

    Add Nano currency image

commit 538220f7bc
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Fri Feb 24 14:50:19 2023 +0200

    Add assertion to avoid null

commit 770ed710d7
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Fri Feb 24 14:24:40 2023 +0200

    Add app lock feature on mac

commit f050f022b6
Merge: f8acc1c0 ac099075
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Fri Feb 24 00:40:19 2023 +0200

    Merge branch 'main' of https://github.com/cake-tech/cake_wallet into dashboard-desktop-view

     Conflicts:
    	lib/src/screens/buy/onramper_page.dart
    	lib/src/screens/seed/wallet_seed_page.dart
    	pubspec_base.yaml
    	res/values/strings_de.arb
    	res/values/strings_en.arb
    	res/values/strings_es.arb
    	res/values/strings_fr.arb
    	res/values/strings_hi.arb
    	res/values/strings_hr.arb
    	res/values/strings_it.arb
    	res/values/strings_ja.arb
    	res/values/strings_ko.arb
    	res/values/strings_nl.arb
    	res/values/strings_pl.arb
    	res/values/strings_pt.arb
    	res/values/strings_ru.arb
    	res/values/strings_uk.arb
    	res/values/strings_zh.arb

commit f8acc1c007
Merge: 67503f39 d3eb22e1
Author: Omar Hatem <omarh.ismail1@gmail.com>
Date:   Thu Feb 23 21:56:50 2023 +0200

    Merge pull request #791 from cake-tech/fix-desktop-colors-addressbook

    Fix desktop background color and address book view issues

commit d3eb22e1d4
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Thu Feb 23 21:16:28 2023 +0200

    Replace removed code

commit 8d482464d9
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Thu Feb 23 18:56:20 2023 +0200

    Fix ionia input field alignment

commit 67503f393d
Merge: 99344600 016bca01
Author: Omar Hatem <omarh.ismail1@gmail.com>
Date:   Thu Feb 23 18:24:32 2023 +0200

    Merge pull request #797 from cake-tech/align-create-restore-screens

    Fix alignment in create and restore wallet screens

commit 016bca01f4
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Thu Feb 23 18:18:40 2023 +0200

    remove unused code

commit 9934460004
Merge: 7a504abc bba0ce2e
Author: Omar Hatem <omarh.ismail1@gmail.com>
Date:   Thu Feb 23 18:06:27 2023 +0200

    Merge pull request #796 from cake-tech/fix-popup-width-constraints

    Fix Popup width constraint and add focus orders

commit bba0ce2ec6
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Thu Feb 23 18:03:44 2023 +0200

    Remove autofocus

commit 28c599e68a
Merge: d5e9982e 7a504abc
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Thu Feb 23 17:51:26 2023 +0200

    Merge branch 'dashboard-desktop-view' of https://github.com/cake-tech/cake_wallet into align-create-restore-screens

commit d5e9982e91
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Thu Feb 23 16:03:20 2023 +0200

    override navbar with desktopnavbar

commit 7a504abc01
Merge: c05d70b1 9616974d
Author: Omar Hatem <omarh.ismail1@gmail.com>
Date:   Wed Feb 22 19:31:37 2023 +0200

    Merge pull request #787 from cake-tech/macos-fix-settings-create-wallet

    Fix wallet create in settings

commit 9616974d33
Merge: 75d52794 24dc9bea
Author: Omar Hatem <omarh.ismail1@gmail.com>
Date:   Wed Feb 22 19:05:20 2023 +0200

    Merge pull request #790 from cake-tech/add-create-restore-dropdown

    Add create and restore wallet options to dropdown menu

commit 24dc9bea27
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Wed Feb 22 18:47:00 2023 +0200

    remove space

commit 6dc4eafff4
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Wed Feb 22 18:44:49 2023 +0200

    Fix dropdown change state bug

    Hide scanner for desktop

commit c41b6b7f89
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Wed Feb 22 16:17:26 2023 +0200

    Fix alignment in create and restore wallet screens

commit 07f6f43e0b
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Tue Feb 21 22:05:02 2023 +0200

    refactor dropdown items

commit 88e245e480
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Tue Feb 21 12:22:32 2023 +0200

    Fix issues from code review

commit c05d70b118
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Tue Feb 21 01:52:47 2023 +0200

    Fix variable name

commit 44b1eec81d
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Mon Feb 20 23:24:19 2023 +0200

    Fix Popup width constraint and add focus orders

commit 17aa72e460
Merge: 1b892288 c920b62a
Author: Omar Hatem <omarh.ismail1@gmail.com>
Date:   Mon Feb 20 14:48:22 2023 +0200

    Merge pull request #792 from cake-tech/add-keyboard-control

    Add keyboard control for desktop

commit cf125d1e06
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Sat Feb 18 14:23:48 2023 +0200

    Fix issue from code review

commit c920b62aa0
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Sat Feb 18 00:13:51 2023 +0200

    Add onFieldSubmitted to allow "enter" button interaction

commit 59a79242af
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Fri Feb 17 19:06:41 2023 +0200

    Fix input field

commit 52468e1331
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Fri Feb 17 18:19:26 2023 +0200

    Fix desktop background color and address book view issues

commit 4bc81242fc
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Fri Feb 17 16:41:49 2023 +0200

    Add create and restore wallet options to dropdown menu

commit 75d52794f4
Merge: e0970fa1 1b892288
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Thu Feb 16 18:27:19 2023 +0200

    Merge branch 'dashboard-desktop-view' of https://github.com/cake-tech/cake_wallet into macos-fix-settings-create-wallet

commit e0970fa182
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Thu Feb 16 18:05:10 2023 +0200

    fix pageview controller reset index

commit 1b89228893
Merge: bb05573c 4027ea04
Author: Omar Hatem <omarh.ismail1@gmail.com>
Date:   Thu Feb 16 17:57:43 2023 +0200

    Merge pull request #745 from cake-tech/CW-301-desktop-side-bar-ui

    Add desktop sidebar

commit 4027ea04eb
Merge: dd13172c 0015f41a
Author: Omar Hatem <omarh.ismail1@gmail.com>
Date:   Thu Feb 16 17:54:54 2023 +0200

    Merge pull request #775 from cake-tech/CW-311-remove-drawer-from-mac-os

    Replace drawer icon for mac os

commit 0015f41a0d
Merge: 5a77aa20 55bf964a
Author: Omar Hatem <omarh.ismail1@gmail.com>
Date:   Thu Feb 16 17:52:24 2023 +0200

    Merge pull request #785 from cake-tech/desktop-ui-for-exchange-send

    Desktop UI for exchange send

commit 55bf964a27
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Thu Feb 16 17:51:52 2023 +0200

    - Use close icon on main screens
    - Minor UI fixes

commit 5296a2118a
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Wed Feb 15 23:50:15 2023 +0200

    Remove duplicated constrains

commit 2496a6574a
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Wed Feb 15 22:14:07 2023 +0200

    remove unnecessary code

commit f0c4952809
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Wed Feb 15 22:13:24 2023 +0200

    remove unnecessary code

commit 3dcf5b05a5
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Wed Feb 15 22:11:34 2023 +0200

    Fix wallet create in settings

commit 8de9c80fe1
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Wed Feb 15 20:55:06 2023 +0200

    Rename misleading variable
    Change initial mac window size

commit f8d70e7ce6
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Wed Feb 15 16:07:46 2023 +0200

    Fix UI issues, paddings and alignments

commit b1947426fb
Merge: 843db656 5a77aa20
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Wed Feb 15 03:09:38 2023 +0200

    Merge branch 'CW-311-remove-drawer-from-mac-os' of https://github.com/cake-tech/cake_wallet into desktop-ui-for-exchange-send

     Conflicts:
    	lib/src/screens/dashboard/desktop_dashboard_page.dart
    	lib/src/screens/dashboard/desktop_widgets/desktop_sidebar_wrapper.dart

commit 843db65603
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Wed Feb 15 01:28:10 2023 +0200

    Add width constraints to desktop dashboard

commit 5a77aa2017
Merge: 107e136f 6caeae28
Author: Omar Hatem <omarh.ismail1@gmail.com>
Date:   Wed Feb 15 01:20:05 2023 +0200

    Merge pull request #786 from cake-tech/CW-312-mac-os-settings-icon-to-be-a-toggle

    MacOS settings icon to be a toggle

commit 6caeae2817
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Tue Feb 14 21:55:13 2023 +0200

    Add padding to support page

commit ea09bba0fb
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Tue Feb 14 21:53:17 2023 +0200

    Make side menu items toggle back to dashboard

commit 02fe3c008f
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Tue Feb 14 18:05:44 2023 +0200

    Constrain primary Buttons width

commit fb5efc0429
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Tue Feb 14 18:01:24 2023 +0200

    Fix Desktop dashboard actions background color

commit 8f76232937
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Tue Feb 14 17:21:09 2023 +0200

    - Change design/paddings for Send page on desktop view
    - Make AddTemplateButton instead of having it duplicated in send/exchange

commit bd04383b7c
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Tue Feb 14 01:36:34 2023 +0200

    Change Exchange page UI depending on platform

commit 10b877f55e
Merge: 107e136f dd13172c
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Sat Feb 11 00:48:16 2023 +0200

    Merge branch 'CW-301-desktop-side-bar-ui' of https://github.com/cake-tech/cake_wallet into CW-311-remove-drawer-from-mac-os

commit dd13172cfe
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Sat Feb 11 00:41:48 2023 +0200

    Add max width constrain to Welcome page

commit 107e136f52
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Sat Feb 11 00:35:11 2023 +0200

    remove empty line

commit bdfe070f8d
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Sat Feb 11 00:32:26 2023 +0200

    Refactor sidebar state management

commit 770e3b6f52
Merge: 99bb3cce 5fa50c76
Author: Omar Hatem <omarh.ismail1@gmail.com>
Date:   Fri Feb 10 23:29:36 2023 +0200

    Merge pull request #774 from cake-tech/CW-310-add-constraints-to-images-on-macos

    [CW-310] Add constraints to images on macos

commit 5fa50c7668
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Fri Feb 10 23:27:19 2023 +0200

    Fix Constrained width screens UI

commit c1bf0ee7aa
Merge: eb3b2464 99bb3cce
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Fri Feb 10 22:54:13 2023 +0200

    Merge branch 'CW-301-desktop-side-bar-ui' of https://github.com/cake-tech/cake_wallet into CW-310-add-constraints-to-images-on-macos

     Conflicts:
    	lib/src/screens/pin_code/pin_code_widget.dart

commit 99bb3cce47
Merge: 2623546b 3fb8be00
Author: Omar Hatem <omarh.ismail1@gmail.com>
Date:   Fri Feb 10 22:34:18 2023 +0200

    Merge pull request #779 from cake-tech/CW-318-desktop-marketplace

    Add Marketplace to dashboard view

commit 3fb8be0053
Merge: 887afdad 2623546b
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Fri Feb 10 22:33:31 2023 +0200

    Merge branch 'CW-301-desktop-side-bar-ui' of https://github.com/cake-tech/cake_wallet into CW-318-desktop-marketplace

     Conflicts:
    	lib/src/screens/dashboard/desktop_widgets/desktop_dashboard_actions.dart

commit 2623546b5e
Merge: 2b2bebe9 2ea360d8
Author: Omar Hatem <omarh.ismail1@gmail.com>
Date:   Fri Feb 10 22:09:55 2023 +0200

    Merge pull request #776 from cake-tech/CW-309-allow-pin-keyboard-entry-on-macos

    Allow Keyboard usage on PIN screen

commit 887afdadd0
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Fri Feb 10 20:39:23 2023 +0200

    Change ionia welcome page animation

commit 2b2bebe98f
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Fri Feb 10 20:26:07 2023 +0200

    Refresh desktop dashboard actions on wallet change

commit eb3b246437
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Fri Feb 10 20:19:13 2023 +0200

    Add empty trailing to center page title on desktop

commit 32d2bf2c85
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Fri Feb 10 20:07:53 2023 +0200

    Update widget contraints

commit 89fe8df459
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Fri Feb 10 19:45:48 2023 +0200

    Update trailing icon to open transaction page

commit 6d49e6a543
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Fri Feb 10 18:40:50 2023 +0200

    Add Marketplace to dashboard view

commit 2ea360d81d
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Fri Feb 10 18:15:05 2023 +0200

    Fix desktop nav bar UI

commit 677305f625
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Thu Feb 9 22:53:02 2023 +0200

    - Listen to keyboard events in PIN screen
    - Fix PIN buttons style

commit 1831ebf435
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Thu Feb 9 20:29:38 2023 +0200

    Remove drawer from mac os

commit 150d43b2da
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Thu Feb 9 20:11:20 2023 +0200

    constraint images and pincoded box

commit a116241185
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Thu Feb 9 19:17:52 2023 +0200

    Separate Dashboard desktop view from mobile view

commit 5c89c42540
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Thu Feb 9 16:53:07 2023 +0200

    [skip ci] remove .project changes

commit dd2bf60b01
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Thu Feb 9 16:51:49 2023 +0200

    [skip ci] remove .project changes

commit 167eae1293
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Thu Feb 9 16:10:43 2023 +0200

    Revert changes in .gitignore

commit 30d16266c0
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Thu Feb 9 16:02:02 2023 +0200

    Revert removing .lock files

commit 3c17310a5b
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Wed Feb 8 22:12:11 2023 +0200

    [skip ci] reformat desktop dashboard

commit 48ae156eb8
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Wed Feb 8 21:57:26 2023 +0200

    [skip ci] reformat desktop dashboard

commit b1b8193043
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Wed Feb 8 20:41:46 2023 +0200

    Fix issues from code review

commit a1abdc849a
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Wed Feb 8 18:56:00 2023 +0200

    Fix bug on sidebar reset

commit 3f03fb0b18
Merge: 69651b3e 9f69de80
Author: Omar Hatem <omarh.ismail1@gmail.com>
Date:   Wed Feb 8 15:50:37 2023 +0200

    Merge pull request #769 from cake-tech/fix-buy-feature-on-macos

    Fix buy feature on macos

commit 9f69de8057
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Wed Feb 8 15:49:26 2023 +0200

    Remove Podfile.lock from cache

commit 738621254f
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Wed Feb 8 15:46:57 2023 +0200

    Add pubspec.lock and Podfile.lock to gitignore

commit 26b79fe0cd
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Mon Feb 6 18:23:40 2023 +0200

    - Refactor onRamper to have a single point of modification
    - Enlarge initial app size
    - update Flutter and Packages

commit dea81f92e3
Merge: c7db7b99 69651b3e
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Tue Jan 31 16:48:36 2023 +0200

    Merge remote-tracking branch 'origin/CW-301-desktop-side-bar-ui' into CW-301-desktop-side-bar-ui

commit 69651b3eb4
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Tue Jan 31 15:30:46 2023 +0200

    Remove constants

commit c7db7b99a5
Merge: 9ed77cd6 4902dc8d
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Tue Jan 31 15:23:47 2023 +0200

    Merge remote-tracking branch 'origin/CW-301-desktop-side-bar-ui' into CW-301-desktop-side-bar-ui

commit 4902dc8dd4
Merge: d12bcc80 bb05573c
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Tue Jan 31 15:12:01 2023 +0200

    Merge branch 'dashboard-desktop-view' of https://github.com/cake-tech/cake_wallet into CW-301-desktop-side-bar-ui

commit 9ed77cd6f9
Merge: d12bcc80 bb05573c
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Mon Jan 30 23:43:09 2023 +0200

    Merge branch 'dashboard-desktop-view' of https://github.com/cake-tech/cake_wallet into CW-301-desktop-side-bar-ui

     Conflicts:
    	lib/src/screens/dashboard/dashboard_page.dart

commit bb05573c3a
Merge: de2b887a c20eb232
Author: Omar Hatem <omarh.ismail1@gmail.com>
Date:   Mon Jan 30 23:33:44 2023 +0200

    Merge pull request #753 from cake-tech/mac-os-icons

    Mac os icons

commit d12bcc80d1
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Mon Jan 30 23:32:31 2023 +0200

    Fix exchange page as fullScreenDialog

commit de2b887a9b
Merge: abf5f0b7 adfebe69
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Mon Jan 30 23:31:59 2023 +0200

    Merge branch 'mac-os-fixes' of https://github.com/cake-tech/cake_wallet into dashboard-desktop-view

commit c20eb2325e
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Mon Jan 30 23:28:15 2023 +0200

    Change Mac os app name and bundle id

commit deadc93a76
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Mon Jan 30 23:23:42 2023 +0200

    fix dashboard sidebar and responsive utils

commit abf5f0b7c6
Merge: b6666ca4 5b50ea05
Author: Omar Hatem <omarh.ismail1@gmail.com>
Date:   Mon Jan 30 22:28:24 2023 +0200

    Merge pull request #754 from cake-tech/desktop-appbar-view

    Desktop AppBar

commit 94184d69d6
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Mon Jan 30 17:26:40 2023 +0200

    localize settings

commit d5957b9873
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Mon Jan 30 16:01:37 2023 +0200

    Generate MacOS icons

commit 5b50ea053e
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Sun Jan 29 16:49:42 2023 +0200

    Add Wallet selection dropdown to dashboard desktop view

commit b6666ca405
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Sat Jan 28 17:13:34 2023 +0200

    Ignore increasing brightness for non-mobile platforms

commit 75f33a433e
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Sat Jan 28 12:43:44 2023 +0200

    refactor desktop settings sidebar

commit adfebe6940
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Thu Jan 26 20:53:26 2023 +0200

    Temporarily fetch unstoppable domains only on mobile

commit 132033207e
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Thu Jan 26 02:33:15 2023 +0200

    Remove unstoppable domain from macos since it's not supported

commit 409c13a77a
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Thu Jan 26 02:25:28 2023 +0200

    Remove wake lock native code and just use the ready made package

commit 90a7432bf9
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Thu Jan 26 02:05:48 2023 +0200

    - Remove legacy migration from macos
    - Remove wake lock native code and just use the ready made package

commit 6b2bf313a3
Merge: 42a28d42 e8c1d863
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Wed Jan 25 18:24:57 2023 +0200

    Merge branch 'mac-os-fixes' of https://github.com/cake-tech/cake_wallet into dashboard-desktop-view

commit 20ae8d530f
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Wed Jan 25 16:17:50 2023 +0200

    [skip ci] Add desktop sidebar

commit ba09a24d53
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Wed Jan 25 16:14:34 2023 +0200

    [skip ci] Add desktop sidebar

commit 4f1f51e0aa
Author: Godwin Asuquo <godilite@gmail.com>
Date:   Wed Jan 25 15:57:56 2023 +0200

    Add desktop sidebar

commit e8c1d86373
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Wed Jan 25 02:38:28 2023 +0200

    Add platform channel specific code for mac os

commit 4aebbdace7
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Wed Jan 25 00:14:28 2023 +0200

    Revert mac os version

commit fa072ff2f1
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Wed Jan 25 00:11:18 2023 +0200

    Revert mac os version

commit 6e03d2933d
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Wed Jan 25 00:07:11 2023 +0200

    Revert back to Cake fork for secure storage

commit c3c81f7685
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Tue Jan 24 23:58:06 2023 +0200

    Revert back to Cake fork for secure storage

commit d41e7b7bab
Merge: ed0d87c8 ae3620b1
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Fri Jan 20 18:24:39 2023 +0200

    Merge branch 'desktop-mac-os' of https://github.com/cake-tech/cake_wallet into mac-os-fixes

commit ed0d87c893
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Fri Jan 20 17:45:54 2023 +0200

    Update deployment target to 10.13

commit dac7f8e1b3
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Fri Jan 20 15:02:08 2023 +0200

    Add Bundle ID in entitlements files through app config script

commit 786ba3b042
Author: M <m@cakewallet.com>
Date:   Thu Jan 19 18:14:46 2023 -0500

    Add linux application to the project.

commit ae3620b171
Author: M <m@cakewallet.com>
Date:   Thu Jan 19 15:54:59 2023 -0500

    Fix arch match for monero lib for darwin x86_64 -> x86-64

commit 42a28d4246
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Thu Jan 19 04:04:20 2023 +0200

    Add on Tap to desktop_action_button.dart
    Remove unused functions

commit 42a7439315
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Wed Jan 18 22:11:59 2023 +0200

    Change Dashboard view on desktop size screens

commit 9f1e663719
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Tue Jan 17 22:06:05 2023 +0200

    Add network access to mac

commit 456ba28cb2
Author: OmarHatem <omarh.ismail1@gmail.com>
Date:   Tue Jan 17 21:10:39 2023 +0200

    - Update Flutter secure storage to work with macos
    - Enable uni links only on Mobile
    - Update devcelocale to work with macos

commit 31fa9e8b19
Author: M <m@cakewallet.com>
Date:   Tue Jan 10 21:15:24 2023 -0500

    Add build scripts for macOS. Add macos for cw_monero plugin. Add macos proj to the application.
2023-09-07 15:48:05 -03:00

118 lines
3.5 KiB
Dart

import 'package:cake_wallet/di.dart';
import 'package:cw_core/wallet_info.dart';
import 'package:cake_wallet/entities/preferences_key.dart';
import 'package:flutter/foundation.dart';
import 'package:hive/hive.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:cake_wallet/core/key_service.dart';
import 'package:cw_core/wallet_base.dart';
import 'package:cake_wallet/core/generate_wallet_password.dart';
import 'package:cw_core/wallet_credentials.dart';
import 'package:cw_core/wallet_service.dart';
import 'package:cw_core/wallet_type.dart';
class WalletCreationService {
WalletCreationService(
{required WalletType initialType,
required this.keyService,
required this.sharedPreferences,
required this.walletInfoSource})
: type = initialType {
changeWalletType(type: type);
}
WalletType type;
final SharedPreferences sharedPreferences;
final KeyService keyService;
final Box<WalletInfo> walletInfoSource;
WalletService? _service;
static const _isNewMoneroWalletPasswordUpdated = true;
void changeWalletType({required WalletType type}) {
this.type = type;
_service = getIt.get<WalletService>(param1: type);
}
bool exists(String name) {
final walletName = name.toLowerCase();
return walletInfoSource
.values
.any((walletInfo) => walletInfo.name.toLowerCase() == walletName);
}
bool typeExists(WalletType type) {
return walletInfoSource
.values
.any((walletInfo) => walletInfo.type == type);
}
void checkIfExists(String name) {
if (exists(name)) {
throw Exception('Wallet with name ${name} already exists!');
}
}
Future<WalletBase> create(WalletCredentials credentials) async {
checkIfExists(credentials.name);
if (credentials.password == null) {
credentials.password = generateWalletPassword();
await keyService.saveWalletPassword(
password: credentials.password!, walletName: credentials.name);
}
final wallet = await _service!.create(credentials);
if (wallet.type == WalletType.monero) {
await sharedPreferences
.setBool(
PreferencesKey.moneroWalletUpdateV1Key(wallet.name),
_isNewMoneroWalletPasswordUpdated);
}
return wallet;
}
Future<WalletBase> restoreFromKeys(WalletCredentials credentials) async {
checkIfExists(credentials.name);
if (credentials.password == null) {
credentials.password = generateWalletPassword();
await keyService.saveWalletPassword(
password: credentials.password!, walletName: credentials.name);
}
final wallet = await _service!.restoreFromKeys(credentials);
if (wallet.type == WalletType.monero) {
await sharedPreferences
.setBool(
PreferencesKey.moneroWalletUpdateV1Key(wallet.name),
_isNewMoneroWalletPasswordUpdated);
}
return wallet;
}
Future<WalletBase> restoreFromSeed(WalletCredentials credentials) async {
checkIfExists(credentials.name);
if (credentials.password == null) {
credentials.password = generateWalletPassword();
await keyService.saveWalletPassword(
password: credentials.password!, walletName: credentials.name);
}
final wallet = await _service!.restoreFromSeed(credentials);
if (wallet.type == WalletType.monero) {
await sharedPreferences
.setBool(
PreferencesKey.moneroWalletUpdateV1Key(wallet.name),
_isNewMoneroWalletPasswordUpdated);
}
return wallet;
}
}