From ca9d8ab4d619686fe81aad5ad2fd8095be9a68c5 Mon Sep 17 00:00:00 2001 From: poka Date: Sun, 12 Sep 2021 06:52:18 +0200 Subject: [PATCH] Adapt to Flutter 2.5.0 --- lib/main.dart | 3 ++- lib/models/walletOptions.dart | 4 ---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index a38fdb8..f6f81a6 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -142,13 +142,14 @@ class Gecko extends StatelessWidget { title: 'Ğecko', theme: ThemeData( primaryColor: Color(0xffFFD58D), - accentColor: Colors.grey[850], textTheme: TextTheme( bodyText1: TextStyle(), bodyText2: TextStyle(), ).apply( bodyColor: Color(0xff855F2D), ), + colorScheme: ColorScheme.fromSwatch() + .copyWith(secondary: Colors.grey[850]), ), home: HomeScreen(), initialRoute: "/", diff --git a/lib/models/walletOptions.dart b/lib/models/walletOptions.dart index 993f202..d676d4d 100644 --- a/lib/models/walletOptions.dart +++ b/lib/models/walletOptions.dart @@ -8,10 +8,8 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'dart:async'; import 'package:gecko/globals.dart'; -import 'package:gecko/models/home.dart'; import 'package:gecko/models/myWallets.dart'; import 'package:image_picker/image_picker.dart'; -import 'package:provider/provider.dart'; import 'package:truncate/truncate.dart'; import 'package:qrscan/qrscan.dart' as scanner; @@ -75,8 +73,6 @@ class WalletOptionsProvider with ChangeNotifier { Future readLocalWallet( context, WalletData _wallet, String _pin, int _pinLenght) async { - HomeProvider _homeProvider = - Provider.of(context, listen: false); isWalletUnlock = false; try { File _walletFile = File('${walletsDirectory.path}/0/wallet.dewif');