Skip to content

Commit

Permalink
Merge pull request #104 from cypherstack/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
ryleedavis authored Sep 30, 2022
2 parents 6b45fa5 + fbfe944 commit 4d946bf
Show file tree
Hide file tree
Showing 66 changed files with 8,546 additions and 4,372 deletions.
7 changes: 7 additions & 0 deletions assets/svg/coin_icons/Wownero.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions assets/svg/drd-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion crypto_plugins/flutter_libmonero
Submodule flutter_libmonero updated 103 files
8 changes: 6 additions & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import 'package:cw_core/wallet_type.dart';
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:flutter_riverpod/flutter_riverpod.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:hive_flutter/hive_flutter.dart';
Expand Down Expand Up @@ -84,7 +85,6 @@ void main() async {
appDirectory = (await getLibraryDirectory());
}
// FlutterNativeSplash.preserve(widgetsBinding: widgetsBinding);
await Hive.initFlutter(appDirectory.path);
if (!(Logging.isArmLinux || Logging.isTestEnv)) {
final isar = await Isar.open(
[LogSchema],
Expand Down Expand Up @@ -128,11 +128,14 @@ void main() async {

Hive.registerAdapter(NodeAdapter());

Hive.registerAdapter(WalletInfoAdapter());
if (!Hive.isAdapterRegistered(WalletInfoAdapter().typeId)) {
Hive.registerAdapter(WalletInfoAdapter());
}

Hive.registerAdapter(WalletTypeAdapter());

Hive.registerAdapter(UnspentCoinsInfoAdapter());
await Hive.initFlutter(appDirectory.path);

await Hive.openBox<dynamic>(DB.boxNameDBInfo);
int dbVersion = DB.instance.get<dynamic>(
Expand All @@ -143,6 +146,7 @@ void main() async {
}

monero.onStartup();
wownero.onStartup();

await Hive.openBox<dynamic>(DB.boxNameTheme);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ class CreateOrRestoreWalletView extends StatelessWidget {
body: SizedBox(
width: 480,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
const Spacer(
flex: 10,
),
CreateRestoreWalletTitle(
coin: coin,
isDesktop: isDesktop,
Expand Down Expand Up @@ -67,6 +69,9 @@ class CreateOrRestoreWalletView extends StatelessWidget {
coin: coin,
isDesktop: isDesktop,
),
const Spacer(
flex: 15,
),
],
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ class _NameYourWalletViewState extends ConsumerState<NameYourWalletView> {
crossAxisAlignment:
isDesktop ? CrossAxisAlignment.center : CrossAxisAlignment.stretch,
children: [
if (isDesktop)
const Spacer(
flex: 10,
),
if (!isDesktop)
const Spacer(
flex: 1,
Expand All @@ -163,7 +167,7 @@ class _NameYourWalletViewState extends ConsumerState<NameYourWalletView> {
height: 100,
),
SizedBox(
height: isDesktop ? 24 : 16,
height: isDesktop ? 0 : 16,
),
Text(
"Name your ${coin.prettyName} wallet",
Expand Down Expand Up @@ -358,6 +362,10 @@ class _NameYourWalletViewState extends ConsumerState<NameYourWalletView> {
),
),
),
if (isDesktop)
const Spacer(
flex: 15,
),
],
);
}
Loading

0 comments on commit 4d946bf

Please sign in to comment.