UX: change search button appBar with home

This commit is contained in:
poka 2023-11-24 22:58:34 +01:00
parent 6d16b99cbf
commit 5dbec1ac53
2 changed files with 127 additions and 134 deletions

View File

@ -28,7 +28,6 @@ class TransactionInProgress extends StatelessWidget {
final myWalletProvider =
Provider.of<MyWalletsProvider>(context, listen: false);
bool isValid = false;
bool isLoading = true;
final result = sub.transactionStatus;
@ -51,6 +50,7 @@ class TransactionInProgress extends StatelessWidget {
'revokeIdty': 'revokeAdhesion'.tr(),
'identityMigration': 'identityMigration'.tr(),
};
String resultText = '';
final Map<String, String> resultMap = {
'': 'sending'.tr(),
@ -232,6 +232,7 @@ class TransactionInProgress extends StatelessWidget {
SizedBox(height: isTall ? 80 : 20)
])),
),
));
),
);
}
}

View File

@ -1,7 +1,6 @@
// ignore_for_file: use_build_context_synchronously
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:gecko/globals.dart';
import 'package:gecko/models/wallet_data.dart';
@ -10,7 +9,6 @@ import 'package:gecko/providers/my_wallets.dart';
import 'package:gecko/providers/search.dart';
import 'package:gecko/providers/wallets_profiles.dart';
import 'package:gecko/screens/myWallets/unlocking_wallet.dart';
import 'package:gecko/screens/search.dart';
import 'package:provider/provider.dart';
class GeckoBottomAppBar extends StatelessWidget {
@ -40,23 +38,17 @@ class GeckoBottomAppBar extends StatelessWidget {
const SizedBox(width: 11),
IconButton(
key: keyAppBarSearch,
iconSize: 40,
icon: const Image(image: AssetImage('assets/loupe-noire.png')),
iconSize: 55,
icon: const Icon(Icons.home_outlined),
onPressed: () {
searchProvider.reload();
Navigator.popUntil(
context,
ModalRoute.withName('/'),
);
Navigator.push(
context,
MaterialPageRoute(builder: (homeContext) {
return const SearchScreen();
}),
);
},
),
const SizedBox(width: 22),
const SizedBox(width: 12),
const Spacer(),
IconButton(
key: keyAppBarQrcode,