migrate flutter 3.3.0
This commit is contained in:
parent
7491b9b489
commit
58572a5e0e
|
@ -1,6 +1,5 @@
|
||||||
import 'package:flutter_dotenv/flutter_dotenv.dart';
|
import 'package:flutter_dotenv/flutter_dotenv.dart';
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
import 'package:flutter_test/flutter_test.dart';
|
||||||
import 'package:gecko/models/widgets_keys.dart';
|
|
||||||
import 'package:integration_test/integration_test.dart';
|
import 'package:integration_test/integration_test.dart';
|
||||||
import 'general_actions.dart';
|
import 'general_actions.dart';
|
||||||
import 'tests_utility.dart';
|
import 'tests_utility.dart';
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import 'dart:math';
|
import 'dart:math';
|
||||||
import 'dart:typed_data';
|
|
||||||
import 'package:durt/durt.dart' as durt;
|
import 'package:durt/durt.dart' as durt;
|
||||||
import 'package:easy_localization/easy_localization.dart';
|
import 'package:easy_localization/easy_localization.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
// ignore_for_file: use_build_context_synchronously
|
// ignore_for_file: use_build_context_synchronously
|
||||||
|
|
||||||
import 'dart:typed_data';
|
|
||||||
import 'package:easy_localization/easy_localization.dart';
|
import 'package:easy_localization/easy_localization.dart';
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
|
@ -137,7 +137,7 @@ class WalletOptionsProvider with ChangeNotifier {
|
||||||
DuniterIndexer duniterIndexer =
|
DuniterIndexer duniterIndexer =
|
||||||
Provider.of<DuniterIndexer>(context, listen: false);
|
Provider.of<DuniterIndexer>(context, listen: false);
|
||||||
|
|
||||||
_showText(String text,
|
showText(String text,
|
||||||
[double size = 18, bool bold = false, bool smooth = true]) {
|
[double size = 18, bool bold = false, bool smooth = true]) {
|
||||||
log.d('$address $text');
|
log.d('$address $text');
|
||||||
return AnimatedFadeOutIn<String>(
|
return AnimatedFadeOutIn<String>(
|
||||||
|
@ -163,16 +163,16 @@ class WalletOptionsProvider with ChangeNotifier {
|
||||||
switch (snapshot.data.toString()) {
|
switch (snapshot.data.toString()) {
|
||||||
case 'noid':
|
case 'noid':
|
||||||
{
|
{
|
||||||
return _showText('noIdentity'.tr());
|
return showText('noIdentity'.tr());
|
||||||
}
|
}
|
||||||
case 'Created':
|
case 'Created':
|
||||||
{
|
{
|
||||||
return _showText('identityCreated'.tr());
|
return showText('identityCreated'.tr());
|
||||||
}
|
}
|
||||||
case 'ConfirmedByOwner':
|
case 'ConfirmedByOwner':
|
||||||
{
|
{
|
||||||
return isOwner
|
return isOwner
|
||||||
? _showText('identityConfirmed'.tr())
|
? showText('identityConfirmed'.tr())
|
||||||
: duniterIndexer.getNameByAddress(
|
: duniterIndexer.getNameByAddress(
|
||||||
context,
|
context,
|
||||||
address,
|
address,
|
||||||
|
@ -187,7 +187,7 @@ class WalletOptionsProvider with ChangeNotifier {
|
||||||
case 'Validated':
|
case 'Validated':
|
||||||
{
|
{
|
||||||
return isOwner
|
return isOwner
|
||||||
? _showText('memberValidated'.tr(), 18, true)
|
? showText('memberValidated'.tr(), 18, true)
|
||||||
: duniterIndexer.getNameByAddress(
|
: duniterIndexer.getNameByAddress(
|
||||||
context,
|
context,
|
||||||
address,
|
address,
|
||||||
|
@ -201,11 +201,11 @@ class WalletOptionsProvider with ChangeNotifier {
|
||||||
|
|
||||||
case 'expired':
|
case 'expired':
|
||||||
{
|
{
|
||||||
return _showText('identityExpired'.tr());
|
return showText('identityExpired'.tr());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return SizedBox(
|
return SizedBox(
|
||||||
child: _showText('', 18, false, false),
|
child: showText('', 18, false, false),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// ignore_for_file: must_be_immutable
|
||||||
|
|
||||||
import 'package:easy_localization/easy_localization.dart';
|
import 'package:easy_localization/easy_localization.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:gecko/globals.dart';
|
import 'package:gecko/globals.dart';
|
||||||
|
@ -13,7 +15,6 @@ import 'package:gecko/screens/wallet_view.dart';
|
||||||
import 'package:graphql_flutter/graphql_flutter.dart';
|
import 'package:graphql_flutter/graphql_flutter.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
|
|
||||||
// ignore: must_be_immutable
|
|
||||||
class ActivityScreen extends StatelessWidget with ChangeNotifier {
|
class ActivityScreen extends StatelessWidget with ChangeNotifier {
|
||||||
ActivityScreen({required this.address, this.avatar, this.username, Key? key})
|
ActivityScreen({required this.address, this.avatar, this.username, Key? key})
|
||||||
: super(key: key);
|
: super(key: key);
|
||||||
|
|
|
@ -1,14 +1,9 @@
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:gecko/globals.dart';
|
import 'package:gecko/globals.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
// import 'package:gecko/models/home.dart';
|
|
||||||
// import 'package:provider/provider.dart';
|
|
||||||
|
|
||||||
// ignore: must_be_immutable
|
|
||||||
class AvatarFullscreen extends StatelessWidget {
|
class AvatarFullscreen extends StatelessWidget {
|
||||||
TextEditingController tplController = TextEditingController();
|
const AvatarFullscreen(this.avatar, {this.title, this.color, Key? key})
|
||||||
|
|
||||||
AvatarFullscreen(this.avatar, {this.title, this.color, Key? key})
|
|
||||||
: super(key: key);
|
: super(key: key);
|
||||||
final Image? avatar;
|
final Image? avatar;
|
||||||
final String? title;
|
final String? title;
|
||||||
|
|
|
@ -65,9 +65,7 @@ class CommonElements {
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
key: keyGoNext,
|
key: keyGoNext,
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
elevation: 4,
|
foregroundColor: Colors.white, backgroundColor: orangeC, elevation: 4, // foreground
|
||||||
primary: orangeC, // background
|
|
||||||
onPrimary: Colors.white, // foreground
|
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
|
|
|
@ -540,9 +540,7 @@ Widget welcomeHome(context) {
|
||||||
height: 70,
|
height: 70,
|
||||||
child: ElevatedButton(key: keyOnboardingNewChest,
|
child: ElevatedButton(key: keyOnboardingNewChest,
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
elevation: 4,
|
foregroundColor: Colors.white, elevation: 4, backgroundColor: orangeC, // foreground
|
||||||
primary: orangeC, // background
|
|
||||||
onPrimary: Colors.white, // foreground
|
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// ignore_for_file: use_build_context_synchronously
|
// ignore_for_file: use_build_context_synchronously, must_be_immutable
|
||||||
|
|
||||||
import 'package:easy_localization/easy_localization.dart';
|
import 'package:easy_localization/easy_localization.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
@ -10,11 +10,9 @@ import 'package:gecko/models/wallet_data.dart';
|
||||||
import 'package:gecko/providers/my_wallets.dart';
|
import 'package:gecko/providers/my_wallets.dart';
|
||||||
import 'package:gecko/providers/substrate_sdk.dart';
|
import 'package:gecko/providers/substrate_sdk.dart';
|
||||||
import 'package:gecko/screens/myWallets/unlocking_wallet.dart';
|
import 'package:gecko/screens/myWallets/unlocking_wallet.dart';
|
||||||
import 'dart:io';
|
|
||||||
|
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
|
|
||||||
// ignore: must_be_immutable
|
|
||||||
class ChangePinScreen extends StatelessWidget with ChangeNotifier {
|
class ChangePinScreen extends StatelessWidget with ChangeNotifier {
|
||||||
ChangePinScreen(
|
ChangePinScreen(
|
||||||
{Key? keyMyWallets,
|
{Key? keyMyWallets,
|
||||||
|
@ -23,9 +21,8 @@ class ChangePinScreen extends StatelessWidget with ChangeNotifier {
|
||||||
: super(key: keyMyWallets);
|
: super(key: keyMyWallets);
|
||||||
final String? walletName;
|
final String? walletName;
|
||||||
final MyWalletsProvider walletProvider;
|
final MyWalletsProvider walletProvider;
|
||||||
Directory? appPath;
|
|
||||||
|
|
||||||
TextEditingController newPin = TextEditingController();
|
final TextEditingController newPin = TextEditingController();
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
@ -102,9 +99,8 @@ class ChangePinScreen extends StatelessWidget with ChangeNotifier {
|
||||||
height: 50,
|
height: 50,
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
elevation: 12,
|
foregroundColor: Colors.black, elevation: 12,
|
||||||
primary: Colors.green[400], //smoothYellow, // background
|
backgroundColor: Colors.green[400], // foreground
|
||||||
onPrimary: Colors.black, // foreground
|
|
||||||
),
|
),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
WalletData defaultWallet =
|
WalletData defaultWallet =
|
||||||
|
|
|
@ -23,7 +23,6 @@ class ChooseChest extends StatefulWidget {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ignore: must_be_immutable
|
|
||||||
class _ChooseChestState extends State<ChooseChest> {
|
class _ChooseChestState extends State<ChooseChest> {
|
||||||
TextEditingController tplController = TextEditingController();
|
TextEditingController tplController = TextEditingController();
|
||||||
CarouselController buttonCarouselController = CarouselController();
|
CarouselController buttonCarouselController = CarouselController();
|
||||||
|
@ -112,8 +111,7 @@ class _ChooseChestState extends State<ChooseChest> {
|
||||||
height: 70,
|
height: 70,
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
primary: orangeC, // background
|
foregroundColor: Colors.black, backgroundColor: orangeC, // foreground
|
||||||
onPrimary: Colors.black, // foreground
|
|
||||||
),
|
),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
await configBox.put('currentChest', currentChest);
|
await configBox.put('currentChest', currentChest);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// ignore_for_file: use_build_context_synchronously
|
// ignore_for_file: use_build_context_synchronously, must_be_immutable
|
||||||
|
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
|
|
||||||
|
@ -16,7 +16,6 @@ import 'package:provider/provider.dart';
|
||||||
// import 'package:gecko/models/home.dart';
|
// import 'package:gecko/models/home.dart';
|
||||||
// import 'package:provider/provider.dart';
|
// import 'package:provider/provider.dart';
|
||||||
|
|
||||||
// ignore: must_be_immutable
|
|
||||||
class ChooseWalletScreen extends StatelessWidget {
|
class ChooseWalletScreen extends StatelessWidget {
|
||||||
ChooseWalletScreen({Key? key, required this.pin}) : super(key: key);
|
ChooseWalletScreen({Key? key, required this.pin}) : super(key: key);
|
||||||
final String pin;
|
final String pin;
|
||||||
|
@ -49,9 +48,7 @@ class ChooseWalletScreen extends StatelessWidget {
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
key: keyConfirm,
|
key: keyConfirm,
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
elevation: 4,
|
foregroundColor: Colors.white, elevation: 4, backgroundColor: orangeC, // foreground
|
||||||
primary: orangeC, // background
|
|
||||||
onPrimary: Colors.white, // foreground
|
|
||||||
),
|
),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
await sub.setCurrentWallet(selectedWallet!);
|
await sub.setCurrentWallet(selectedWallet!);
|
||||||
|
|
|
@ -107,9 +107,7 @@ class _CustomDerivationState extends State<CustomDerivation> {
|
||||||
height: 70,
|
height: 70,
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
elevation: 4,
|
foregroundColor: Colors.white, elevation: 4, backgroundColor: orangeC, // foreground
|
||||||
primary: orangeC, // background
|
|
||||||
onPrimary: Colors.white, // foreground
|
|
||||||
),
|
),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
WalletData? defaultWallet =
|
WalletData? defaultWallet =
|
||||||
|
|
|
@ -239,9 +239,7 @@ class ImportG1v1 extends StatelessWidget {
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
key: keyConfirm,
|
key: keyConfirm,
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
elevation: 4,
|
foregroundColor: Colors.white, elevation: 4, backgroundColor: orangeC, // foreground
|
||||||
primary: orangeC, // background
|
|
||||||
onPrimary: Colors.white, // foreground
|
|
||||||
),
|
),
|
||||||
onPressed: canValidate
|
onPressed: canValidate
|
||||||
? () async {
|
? () async {
|
||||||
|
|
|
@ -188,9 +188,7 @@ class MigrateIdentityScreen extends StatelessWidget {
|
||||||
height: 60 * ratio,
|
height: 60 * ratio,
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
elevation: 4,
|
foregroundColor: Colors.white, elevation: 4, backgroundColor: orangeC, // foreground
|
||||||
primary: orangeC, // background
|
|
||||||
onPrimary: Colors.white, // foreground
|
|
||||||
),
|
),
|
||||||
onPressed: canValidate
|
onPressed: canValidate
|
||||||
? () async {
|
? () async {
|
||||||
|
|
|
@ -94,9 +94,7 @@ class RestoreChest extends StatelessWidget {
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
key: keyGoNext,
|
key: keyGoNext,
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
elevation: 4,
|
foregroundColor: Colors.white, elevation: 4, backgroundColor: orangeC, // foreground
|
||||||
primary: orangeC, // background
|
|
||||||
onPrimary: Colors.white, // foreground
|
|
||||||
),
|
),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
if (await sub
|
if (await sub
|
||||||
|
@ -134,9 +132,7 @@ class RestoreChest extends StatelessWidget {
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
key: keyPastMnemonic,
|
key: keyPastMnemonic,
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
elevation: 4,
|
foregroundColor: Colors.black, elevation: 4, backgroundColor: yellowC, // foreground
|
||||||
primary: yellowC, // background
|
|
||||||
onPrimary: Colors.black, // foreground
|
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
genW.pasteMnemonic(context);
|
genW.pasteMnemonic(context);
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import 'dart:typed_data';
|
|
||||||
import 'package:easy_localization/easy_localization.dart';
|
import 'package:easy_localization/easy_localization.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:gecko/globals.dart';
|
import 'package:gecko/globals.dart';
|
||||||
|
@ -74,12 +73,10 @@ class ShowSeed extends StatelessWidget {
|
||||||
height: 40,
|
height: 40,
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
shape: RoundedRectangleBorder(
|
foregroundColor: Colors.black, shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(8),
|
borderRadius: BorderRadius.circular(8),
|
||||||
),
|
), backgroundColor: orangeC,
|
||||||
elevation: 1,
|
elevation: 1, // foreground
|
||||||
primary: orangeC, // background
|
|
||||||
onPrimary: Colors.black, // foreground
|
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Clipboard.setData(
|
Clipboard.setData(
|
||||||
|
@ -124,9 +121,7 @@ class ShowSeed extends StatelessWidget {
|
||||||
height: 60 * ratio,
|
height: 60 * ratio,
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
elevation: 4,
|
foregroundColor: Colors.white, elevation: 4, backgroundColor: orangeC, // foreground
|
||||||
primary: orangeC, // background
|
|
||||||
onPrimary: Colors.white, // foreground
|
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// ignore_for_file: must_be_immutable
|
||||||
|
|
||||||
import 'package:easy_localization/easy_localization.dart';
|
import 'package:easy_localization/easy_localization.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:gecko/globals.dart';
|
import 'package:gecko/globals.dart';
|
||||||
|
@ -5,7 +7,6 @@ import 'package:flutter/material.dart';
|
||||||
// import 'package:gecko/models/home.dart';
|
// import 'package:gecko/models/home.dart';
|
||||||
// import 'package:provider/provider.dart';
|
// import 'package:provider/provider.dart';
|
||||||
|
|
||||||
// ignore: must_be_immutable
|
|
||||||
class TransactionCommentScreen extends StatelessWidget {
|
class TransactionCommentScreen extends StatelessWidget {
|
||||||
TextEditingController tplController = TextEditingController();
|
TextEditingController tplController = TextEditingController();
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// ignore_for_file: must_be_immutable
|
||||||
|
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'package:easy_localization/easy_localization.dart';
|
import 'package:easy_localization/easy_localization.dart';
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
|
@ -14,7 +16,6 @@ import 'package:pin_code_fields/pin_code_fields.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:gecko/globals.dart';
|
import 'package:gecko/globals.dart';
|
||||||
|
|
||||||
// ignore: must_be_immutable
|
|
||||||
class UnlockingWallet extends StatelessWidget {
|
class UnlockingWallet extends StatelessWidget {
|
||||||
UnlockingWallet({Key? keyUnlockWallet, required this.wallet})
|
UnlockingWallet({Key? keyUnlockWallet, required this.wallet})
|
||||||
: super(key: keyUnlockWallet);
|
: super(key: keyUnlockWallet);
|
||||||
|
|
|
@ -299,9 +299,7 @@ class WalletOptions extends StatelessWidget {
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
key: keyConfirmIdentity,
|
key: keyConfirmIdentity,
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
elevation: 4,
|
foregroundColor: Colors.white, elevation: 4, backgroundColor: orangeC, // foreground
|
||||||
primary: orangeC, // background
|
|
||||||
onPrimary: Colors.white, // foreground
|
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
walletProvider.confirmIdentityPopup(context);
|
walletProvider.confirmIdentityPopup(context);
|
||||||
|
@ -365,12 +363,10 @@ class WalletOptions extends StatelessWidget {
|
||||||
height: 40,
|
height: 40,
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
shape: RoundedRectangleBorder(
|
foregroundColor: Colors.black, shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(8),
|
borderRadius: BorderRadius.circular(8),
|
||||||
),
|
), backgroundColor: orangeC,
|
||||||
elevation: 1,
|
elevation: 1, // foreground
|
||||||
primary: orangeC, // background
|
|
||||||
onPrimary: Colors.black, // foreground
|
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Clipboard.setData(
|
Clipboard.setData(
|
||||||
|
|
|
@ -88,9 +88,7 @@ class WalletsHome extends StatelessWidget {
|
||||||
height: 60,
|
height: 60,
|
||||||
),
|
),
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
elevation: 2,
|
foregroundColor: Colors.black, elevation: 2, backgroundColor: floattingYellow, // foreground
|
||||||
primary: floattingYellow, // background
|
|
||||||
onPrimary: Colors.black, // foreground
|
|
||||||
),
|
),
|
||||||
onPressed: () => Navigator.push(
|
onPressed: () => Navigator.push(
|
||||||
context,
|
context,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// ignore_for_file: file_names
|
// ignore_for_file: file_names
|
||||||
|
// ignore_for_file: must_be_immutable
|
||||||
|
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:io';
|
|
||||||
import 'package:easy_localization/easy_localization.dart';
|
import 'package:easy_localization/easy_localization.dart';
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
|
@ -18,7 +18,6 @@ import 'package:gecko/screens/onBoarding/11_congratulations.dart';
|
||||||
import 'package:pin_code_fields/pin_code_fields.dart';
|
import 'package:pin_code_fields/pin_code_fields.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
|
|
||||||
// ignore: must_be_immutable
|
|
||||||
class OnboardingStepTen extends StatelessWidget {
|
class OnboardingStepTen extends StatelessWidget {
|
||||||
OnboardingStepTen({Key? validationKey, this.scanDerivation = false})
|
OnboardingStepTen({Key? validationKey, this.scanDerivation = false})
|
||||||
: super(key: validationKey);
|
: super(key: validationKey);
|
||||||
|
|
|
@ -1,16 +1,12 @@
|
||||||
// ignore_for_file: file_names
|
// ignore_for_file: file_names
|
||||||
|
|
||||||
import 'dart:io';
|
|
||||||
|
|
||||||
import 'package:easy_localization/easy_localization.dart';
|
import 'package:easy_localization/easy_localization.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:gecko/globals.dart';
|
import 'package:gecko/globals.dart';
|
||||||
import 'package:gecko/models/widgets_keys.dart';
|
import 'package:gecko/models/widgets_keys.dart';
|
||||||
import 'package:gecko/screens/common_elements.dart';
|
import 'package:gecko/screens/common_elements.dart';
|
||||||
import 'package:gecko/screens/myWallets/wallets_home.dart';
|
|
||||||
|
|
||||||
// ignore: must_be_immutable
|
|
||||||
class OnboardingStepEleven extends StatelessWidget {
|
class OnboardingStepEleven extends StatelessWidget {
|
||||||
const OnboardingStepEleven({Key? key}) : super(key: key);
|
const OnboardingStepEleven({Key? key}) : super(key: key);
|
||||||
|
|
||||||
|
@ -59,9 +55,7 @@ Widget finishButton(BuildContext context) {
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
key: keyGoWalletsHome,
|
key: keyGoWalletsHome,
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
elevation: 4,
|
foregroundColor: Colors.white, elevation: 4, backgroundColor: orangeC, // foreground
|
||||||
primary: orangeC,
|
|
||||||
onPrimary: Colors.white, // foreground
|
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
// sleep(const Duration(milliseconds: 50));
|
// sleep(const Duration(milliseconds: 50));
|
||||||
|
|
|
@ -83,9 +83,7 @@ class _ChooseChestState extends State<OnboardingStepFive> {
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
key: keyGenerateMnemonic,
|
key: keyGenerateMnemonic,
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
elevation: 4,
|
foregroundColor: Colors.black, elevation: 4, backgroundColor: const Color(0xffFFD58D), // foreground
|
||||||
primary: const Color(0xffFFD58D),
|
|
||||||
onPrimary: Colors.black, // foreground
|
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
// _generateWalletProvider.reloadBuild();
|
// _generateWalletProvider.reloadBuild();
|
||||||
|
@ -183,7 +181,6 @@ Widget arrayCell(dataWord) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ignore: must_be_immutable
|
|
||||||
class PrintWallet extends StatelessWidget {
|
class PrintWallet extends StatelessWidget {
|
||||||
const PrintWallet(this.sentence, {Key? key}) : super(key: key);
|
const PrintWallet(this.sentence, {Key? key}) : super(key: key);
|
||||||
|
|
||||||
|
@ -234,9 +231,7 @@ Widget nextButton(
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
key: keyGoNext,
|
key: keyGoNext,
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
elevation: 4,
|
foregroundColor: Colors.white, elevation: 4, backgroundColor: orangeC, // foreground
|
||||||
primary: orangeC, // background
|
|
||||||
onPrimary: Colors.white, // foreground
|
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
generateWalletProvider.nbrWord = generateWalletProvider.getRandomInt();
|
generateWalletProvider.nbrWord = generateWalletProvider.getRandomInt();
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// ignore_for_file: file_names
|
// ignore_for_file: file_names
|
||||||
|
// ignore_for_file: must_be_immutable
|
||||||
|
|
||||||
import 'package:easy_localization/easy_localization.dart';
|
import 'package:easy_localization/easy_localization.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
|
@ -11,7 +12,6 @@ import 'package:gecko/screens/onBoarding/7.dart';
|
||||||
import 'package:gecko/screens/onBoarding/9.dart';
|
import 'package:gecko/screens/onBoarding/9.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
|
|
||||||
// ignore: must_be_immutable
|
|
||||||
class OnboardingStepSix extends StatelessWidget {
|
class OnboardingStepSix extends StatelessWidget {
|
||||||
OnboardingStepSix(
|
OnboardingStepSix(
|
||||||
{Key? key, required this.skipIntro, required this.generatedMnemonic})
|
{Key? key, required this.skipIntro, required this.generatedMnemonic})
|
||||||
|
@ -227,9 +227,8 @@ Widget nextButton(BuildContext context, String text, nextScreen, bool isFast) {
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
key: keyGoNext,
|
key: keyGoNext,
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
elevation: 4,
|
foregroundColor: Colors.white, elevation: 4,
|
||||||
primary: orangeC, // background
|
backgroundColor: orangeC, // foreground
|
||||||
onPrimary: Colors.white, // foreground
|
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
|
|
|
@ -9,7 +9,6 @@ import 'package:gecko/screens/common_elements.dart';
|
||||||
import 'package:gecko/screens/onBoarding/10.dart';
|
import 'package:gecko/screens/onBoarding/10.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
|
|
||||||
// ignore: must_be_immutable
|
|
||||||
class OnboardingStepNine extends StatelessWidget {
|
class OnboardingStepNine extends StatelessWidget {
|
||||||
const OnboardingStepNine({Key? key, this.scanDerivation = false})
|
const OnboardingStepNine({Key? key, this.scanDerivation = false})
|
||||||
: super(key: key);
|
: super(key: key);
|
||||||
|
@ -82,9 +81,7 @@ class OnboardingStepNine extends StatelessWidget {
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
key: keyChangePin,
|
key: keyChangePin,
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
elevation: 4,
|
foregroundColor: Colors.black, elevation: 4, backgroundColor: const Color(0xffFFD58D), // foreground
|
||||||
primary: const Color(0xffFFD58D),
|
|
||||||
onPrimary: Colors.black, // foreground
|
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
generateWalletProvider.changePinCode(
|
generateWalletProvider.changePinCode(
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// ignore_for_file: must_be_immutable
|
||||||
|
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:gecko/globals.dart';
|
import 'package:gecko/globals.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
@ -6,7 +8,6 @@ import 'package:qr_flutter/qr_flutter.dart';
|
||||||
// import 'package:gecko/models/home.dart';
|
// import 'package:gecko/models/home.dart';
|
||||||
// import 'package:provider/provider.dart';
|
// import 'package:provider/provider.dart';
|
||||||
|
|
||||||
// ignore: must_be_immutable
|
|
||||||
class QrCodeFullscreen extends StatelessWidget {
|
class QrCodeFullscreen extends StatelessWidget {
|
||||||
TextEditingController tplController = TextEditingController();
|
TextEditingController tplController = TextEditingController();
|
||||||
|
|
||||||
|
|
|
@ -95,9 +95,7 @@ class SearchScreen extends StatelessWidget {
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
key: keyConfirmSearch,
|
key: keyConfirmSearch,
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
elevation: 4,
|
foregroundColor: Colors.white, elevation: 4, backgroundColor: orangeC, // foreground
|
||||||
primary: orangeC, // background
|
|
||||||
onPrimary: Colors.white, // foreground
|
|
||||||
),
|
),
|
||||||
onPressed: searchProvider.searchController.text.length >= 2
|
onPressed: searchProvider.searchController.text.length >= 2
|
||||||
? () {
|
? () {
|
||||||
|
|
|
@ -11,7 +11,6 @@ import 'package:polkawallet_sdk/api/types/networkParams.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
// import 'package:dropdown_button2/dropdown_button2.dart';
|
// import 'package:dropdown_button2/dropdown_button2.dart';
|
||||||
|
|
||||||
// ignore: must_be_immutable
|
|
||||||
class SettingsScreen extends StatelessWidget {
|
class SettingsScreen extends StatelessWidget {
|
||||||
final MyWalletsProvider _myWallets = MyWalletsProvider();
|
final MyWalletsProvider _myWallets = MyWalletsProvider();
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,6 @@ import 'package:provider/provider.dart';
|
||||||
// import 'package:gecko/models/home.dart';
|
// import 'package:gecko/models/home.dart';
|
||||||
// import 'package:provider/provider.dart';
|
// import 'package:provider/provider.dart';
|
||||||
|
|
||||||
// ignore: must_be_immutable
|
|
||||||
class TransactionInProgress extends StatelessWidget {
|
class TransactionInProgress extends StatelessWidget {
|
||||||
const TransactionInProgress(
|
const TransactionInProgress(
|
||||||
{Key? key, this.transType = 'pay', this.fromAddress, this.toAddress})
|
{Key? key, this.transType = 'pay', this.fromAddress, this.toAddress})
|
||||||
|
@ -268,9 +267,7 @@ class TransactionInProgress extends StatelessWidget {
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
key: keyCloseTransactionScreen,
|
key: keyCloseTransactionScreen,
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
elevation: 4,
|
foregroundColor: Colors.white, elevation: 4, backgroundColor: orangeC, // foreground
|
||||||
primary: orangeC, // background
|
|
||||||
onPrimary: Colors.white, // foreground
|
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
|
|
|
@ -626,9 +626,7 @@ class WalletViewScreen extends StatelessWidget {
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
key: keyConfirmPayment,
|
key: keyConfirmPayment,
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
elevation: 4,
|
foregroundColor: Colors.white, elevation: 4, backgroundColor: orangeC, // foreground
|
||||||
primary: orangeC, // background
|
|
||||||
onPrimary: Colors.white, // foreground
|
|
||||||
),
|
),
|
||||||
onPressed: canValidate
|
onPressed: canValidate
|
||||||
? () async {
|
? () async {
|
||||||
|
|
40
pubspec.lock
40
pubspec.lock
|
@ -21,7 +21,7 @@ packages:
|
||||||
name: archive
|
name: archive
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "3.1.11"
|
version: "3.3.0"
|
||||||
args:
|
args:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -42,7 +42,7 @@ packages:
|
||||||
name: async
|
name: async
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.8.2"
|
version: "2.9.0"
|
||||||
auth_header:
|
auth_header:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -161,7 +161,7 @@ packages:
|
||||||
name: characters
|
name: characters
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.2.0"
|
version: "1.2.1"
|
||||||
charcode:
|
charcode:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -182,7 +182,7 @@ packages:
|
||||||
name: clock
|
name: clock
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.1.0"
|
version: "1.1.1"
|
||||||
code_builder:
|
code_builder:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -259,7 +259,7 @@ packages:
|
||||||
name: coverage
|
name: coverage
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.2.0"
|
version: "1.5.0"
|
||||||
cross_file:
|
cross_file:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -273,7 +273,7 @@ packages:
|
||||||
name: crypto
|
name: crypto
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "3.0.1"
|
version: "3.0.2"
|
||||||
dart_style:
|
dart_style:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -343,7 +343,7 @@ packages:
|
||||||
name: fake_async
|
name: fake_async
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.3.0"
|
version: "1.3.1"
|
||||||
fast_base58:
|
fast_base58:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
@ -791,14 +791,14 @@ packages:
|
||||||
name: matcher
|
name: matcher
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.12.11"
|
version: "0.12.12"
|
||||||
material_color_utilities:
|
material_color_utilities:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: material_color_utilities
|
name: material_color_utilities
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.1.4"
|
version: "0.1.5"
|
||||||
matrix4_transform:
|
matrix4_transform:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -812,7 +812,7 @@ packages:
|
||||||
name: meta
|
name: meta
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.7.0"
|
version: "1.8.0"
|
||||||
mime:
|
mime:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -910,7 +910,7 @@ packages:
|
||||||
name: path
|
name: path
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.8.1"
|
version: "1.8.2"
|
||||||
path_drawing:
|
path_drawing:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -1311,7 +1311,7 @@ packages:
|
||||||
name: source_span
|
name: source_span
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.8.2"
|
version: "1.9.0"
|
||||||
stack_trace:
|
stack_trace:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -1339,42 +1339,42 @@ packages:
|
||||||
name: string_scanner
|
name: string_scanner
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.1.0"
|
version: "1.1.1"
|
||||||
sync_http:
|
sync_http:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: sync_http
|
name: sync_http
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.3.0"
|
version: "0.3.1"
|
||||||
term_glyph:
|
term_glyph:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: term_glyph
|
name: term_glyph
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.2.0"
|
version: "1.2.1"
|
||||||
test:
|
test:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: test
|
name: test
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.21.1"
|
version: "1.21.4"
|
||||||
test_api:
|
test_api:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: test_api
|
name: test_api
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.4.9"
|
version: "0.4.12"
|
||||||
test_core:
|
test_core:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: test_core
|
name: test_core
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.4.13"
|
version: "0.4.16"
|
||||||
timing:
|
timing:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -1395,7 +1395,7 @@ packages:
|
||||||
name: typed_data
|
name: typed_data
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.3.0"
|
version: "1.3.1"
|
||||||
universal_io:
|
universal_io:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -1430,7 +1430,7 @@ packages:
|
||||||
name: vm_service
|
name: vm_service
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "8.2.2"
|
version: "9.0.0"
|
||||||
watcher:
|
watcher:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
Loading…
Reference in New Issue