Adapt to Flutter 2.5.0
This commit is contained in:
parent
7b88d34fdb
commit
ca9d8ab4d6
|
@ -142,13 +142,14 @@ class Gecko extends StatelessWidget {
|
||||||
title: 'Ğecko',
|
title: 'Ğecko',
|
||||||
theme: ThemeData(
|
theme: ThemeData(
|
||||||
primaryColor: Color(0xffFFD58D),
|
primaryColor: Color(0xffFFD58D),
|
||||||
accentColor: Colors.grey[850],
|
|
||||||
textTheme: TextTheme(
|
textTheme: TextTheme(
|
||||||
bodyText1: TextStyle(),
|
bodyText1: TextStyle(),
|
||||||
bodyText2: TextStyle(),
|
bodyText2: TextStyle(),
|
||||||
).apply(
|
).apply(
|
||||||
bodyColor: Color(0xff855F2D),
|
bodyColor: Color(0xff855F2D),
|
||||||
),
|
),
|
||||||
|
colorScheme: ColorScheme.fromSwatch()
|
||||||
|
.copyWith(secondary: Colors.grey[850]),
|
||||||
),
|
),
|
||||||
home: HomeScreen(),
|
home: HomeScreen(),
|
||||||
initialRoute: "/",
|
initialRoute: "/",
|
||||||
|
|
|
@ -8,10 +8,8 @@ import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'package:gecko/globals.dart';
|
import 'package:gecko/globals.dart';
|
||||||
import 'package:gecko/models/home.dart';
|
|
||||||
import 'package:gecko/models/myWallets.dart';
|
import 'package:gecko/models/myWallets.dart';
|
||||||
import 'package:image_picker/image_picker.dart';
|
import 'package:image_picker/image_picker.dart';
|
||||||
import 'package:provider/provider.dart';
|
|
||||||
import 'package:truncate/truncate.dart';
|
import 'package:truncate/truncate.dart';
|
||||||
import 'package:qrscan/qrscan.dart' as scanner;
|
import 'package:qrscan/qrscan.dart' as scanner;
|
||||||
|
|
||||||
|
@ -75,8 +73,6 @@ class WalletOptionsProvider with ChangeNotifier {
|
||||||
|
|
||||||
Future readLocalWallet(
|
Future readLocalWallet(
|
||||||
context, WalletData _wallet, String _pin, int _pinLenght) async {
|
context, WalletData _wallet, String _pin, int _pinLenght) async {
|
||||||
HomeProvider _homeProvider =
|
|
||||||
Provider.of<HomeProvider>(context, listen: false);
|
|
||||||
isWalletUnlock = false;
|
isWalletUnlock = false;
|
||||||
try {
|
try {
|
||||||
File _walletFile = File('${walletsDirectory.path}/0/wallet.dewif');
|
File _walletFile = File('${walletsDirectory.path}/0/wallet.dewif');
|
||||||
|
|
Loading…
Reference in New Issue