Merge branch 'dev' into 'master'
Dev See merge request clients/gecko!47
This commit is contained in:
commit
24aee6a53c
|
@ -60,4 +60,5 @@ integration_test/duniter/data/chains/
|
||||||
|
|
||||||
# Ignore PC deps
|
# Ignore PC deps
|
||||||
macos/
|
macos/
|
||||||
windows/
|
windows/
|
||||||
|
scripts/pushGecko
|
|
@ -201,5 +201,6 @@
|
||||||
"smithCantMigrateIdentity":"You can't migrate this identity while you're member of smith web",
|
"smithCantMigrateIdentity":"You can't migrate this identity while you're member of smith web",
|
||||||
"received": "Received",
|
"received": "Received",
|
||||||
"sent": "Sent",
|
"sent": "Sent",
|
||||||
"createIdentity": "Create a new \nidentity"
|
"createIdentity": "Create a new \nidentity",
|
||||||
|
"memberAccountOf": "Account of {}"
|
||||||
}
|
}
|
|
@ -202,5 +202,6 @@
|
||||||
"smithCantMigrateIdentity":"You can't migrate this identity while you're member of smith web",
|
"smithCantMigrateIdentity":"You can't migrate this identity while you're member of smith web",
|
||||||
"received": "Received",
|
"received": "Received",
|
||||||
"sent": "Sent",
|
"sent": "Sent",
|
||||||
"createIdentity": "Create a new \nidentity"
|
"createIdentity": "Create a new \nidentity",
|
||||||
|
"memberAccountOf": "Account of {}"
|
||||||
}
|
}
|
||||||
|
|
|
@ -202,5 +202,6 @@
|
||||||
"smithCantMigrateIdentity":"Vous ne pouvez pas migrer cette identité\ntant que vous êtes dans la toile forgerons",
|
"smithCantMigrateIdentity":"Vous ne pouvez pas migrer cette identité\ntant que vous êtes dans la toile forgerons",
|
||||||
"received": "Reçus",
|
"received": "Reçus",
|
||||||
"sent": "Envoyés",
|
"sent": "Envoyés",
|
||||||
"createIdentity": "Créer sa nouvelle\nidentité"
|
"createIdentity": "Créer sa nouvelle\nidentité",
|
||||||
|
"memberAccountOf": "Compte de {}"
|
||||||
}
|
}
|
||||||
|
|
|
@ -249,6 +249,7 @@ class DuniterIndexer with ChangeNotifier {
|
||||||
// Provider.of<WalletOptionsProvider>(context, listen: false);
|
// Provider.of<WalletOptionsProvider>(context, listen: false);
|
||||||
WalletsProfilesProvider walletsProfiles =
|
WalletsProfilesProvider walletsProfiles =
|
||||||
Provider.of<WalletsProfilesProvider>(context, listen: false);
|
Provider.of<WalletsProfilesProvider>(context, listen: false);
|
||||||
|
final duniterIndexer = Provider.of<DuniterIndexer>(context, listen: false);
|
||||||
if (indexerEndpoint == '') {
|
if (indexerEndpoint == '') {
|
||||||
return const Text('Aucun résultat');
|
return const Text('Aucun résultat');
|
||||||
}
|
}
|
||||||
|
@ -292,6 +293,11 @@ class DuniterIndexer with ChangeNotifier {
|
||||||
return Text('noResult'.tr());
|
return Text('noResult'.tr());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (Map profile in identities) {
|
||||||
|
duniterIndexer.walletNameIndexer
|
||||||
|
.putIfAbsent(profile['pubkey'], () => profile['name']);
|
||||||
|
}
|
||||||
|
|
||||||
double avatarSize = 55;
|
double avatarSize = 55;
|
||||||
return Expanded(
|
return Expanded(
|
||||||
child: ListView(children: <Widget>[
|
child: ListView(children: <Widget>[
|
||||||
|
@ -338,10 +344,7 @@ class DuniterIndexer with ChangeNotifier {
|
||||||
walletsProfiles.address = profile['pubkey'];
|
walletsProfiles.address = profile['pubkey'];
|
||||||
return WalletViewScreen(
|
return WalletViewScreen(
|
||||||
address: profile['pubkey'],
|
address: profile['pubkey'],
|
||||||
username: g1WalletsBox
|
username: name,
|
||||||
.get(profile['pubkey'])
|
|
||||||
?.id
|
|
||||||
?.username,
|
|
||||||
avatar:
|
avatar:
|
||||||
g1WalletsBox.get(profile['pubkey'])?.avatar,
|
g1WalletsBox.get(profile['pubkey'])?.avatar,
|
||||||
);
|
);
|
||||||
|
|
|
@ -37,7 +37,10 @@ class WalletsProfilesProvider with ChangeNotifier {
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
context,
|
context,
|
||||||
MaterialPageRoute(builder: (context) {
|
MaterialPageRoute(builder: (context) {
|
||||||
return WalletViewScreen(address: barcode!.rawContent);
|
return WalletViewScreen(
|
||||||
|
address: barcode!.rawContent,
|
||||||
|
username: '',
|
||||||
|
);
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -367,7 +367,10 @@ class ActivityScreen extends StatelessWidget with ChangeNotifier {
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
context,
|
context,
|
||||||
MaterialPageRoute(builder: (context) {
|
MaterialPageRoute(builder: (context) {
|
||||||
return WalletViewScreen(address: repository[1]);
|
return WalletViewScreen(
|
||||||
|
address: repository[1],
|
||||||
|
username: username ?? '',
|
||||||
|
);
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
// Navigator.pop(context);
|
// Navigator.pop(context);
|
||||||
|
|
|
@ -112,10 +112,10 @@ class ContactsScreen extends StatelessWidget {
|
||||||
g1Wallet.address;
|
g1Wallet.address;
|
||||||
return WalletViewScreen(
|
return WalletViewScreen(
|
||||||
address: g1Wallet.address,
|
address: g1Wallet.address,
|
||||||
username: g1WalletsBox
|
username:
|
||||||
.get(g1Wallet.address)
|
duniterIndexer.walletNameIndexer[
|
||||||
?.id
|
g1Wallet.address] ??
|
||||||
?.username,
|
'',
|
||||||
avatar: g1WalletsBox
|
avatar: g1WalletsBox
|
||||||
.get(g1Wallet.address)
|
.get(g1Wallet.address)
|
||||||
?.avatar,
|
?.avatar,
|
||||||
|
|
|
@ -78,7 +78,6 @@ class SearchResultScreen extends StatelessWidget {
|
||||||
if (snapshot.data?.isEmpty ?? true) {
|
if (snapshot.data?.isEmpty ?? true) {
|
||||||
return duniterIndexer.searchIdentity(
|
return duniterIndexer.searchIdentity(
|
||||||
context, searchProvider.searchController.text);
|
context, searchProvider.searchController.text);
|
||||||
|
|
||||||
// const Text('Aucun résultat');
|
// const Text('Aucun résultat');
|
||||||
} else {
|
} else {
|
||||||
return Expanded(
|
return Expanded(
|
||||||
|
@ -138,10 +137,10 @@ class SearchResultScreen extends StatelessWidget {
|
||||||
g1Wallet.address;
|
g1Wallet.address;
|
||||||
return WalletViewScreen(
|
return WalletViewScreen(
|
||||||
address: g1Wallet.address,
|
address: g1Wallet.address,
|
||||||
username: g1WalletsBox
|
username: duniterIndexer
|
||||||
.get(g1Wallet.address)
|
.walletNameIndexer[
|
||||||
?.id
|
g1Wallet.address] ??
|
||||||
?.username,
|
'',
|
||||||
avatar: g1WalletsBox
|
avatar: g1WalletsBox
|
||||||
.get(g1Wallet.address)
|
.get(g1Wallet.address)
|
||||||
?.avatar,
|
?.avatar,
|
||||||
|
|
|
@ -28,10 +28,10 @@ import 'package:qr_flutter/qr_flutter.dart';
|
||||||
|
|
||||||
class WalletViewScreen extends StatelessWidget {
|
class WalletViewScreen extends StatelessWidget {
|
||||||
const WalletViewScreen(
|
const WalletViewScreen(
|
||||||
{required this.address, this.username, this.avatar, Key? key})
|
{required this.address, required this.username, this.avatar, Key? key})
|
||||||
: super(key: key);
|
: super(key: key);
|
||||||
final String address;
|
final String address;
|
||||||
final String? username;
|
final String username;
|
||||||
final Image? avatar;
|
final Image? avatar;
|
||||||
final double buttonSize = 100;
|
final double buttonSize = 100;
|
||||||
final double buttonFontSize = 18;
|
final double buttonFontSize = 18;
|
||||||
|
@ -46,10 +46,13 @@ class WalletViewScreen extends StatelessWidget {
|
||||||
Provider.of<HomeProvider>(context, listen: false);
|
Provider.of<HomeProvider>(context, listen: false);
|
||||||
final myWalletProvider =
|
final myWalletProvider =
|
||||||
Provider.of<MyWalletsProvider>(context, listen: false);
|
Provider.of<MyWalletsProvider>(context, listen: false);
|
||||||
|
final duniterIndexer = Provider.of<DuniterIndexer>(context, listen: false);
|
||||||
WalletData? defaultWallet = myWalletProvider.getDefaultWallet();
|
WalletData? defaultWallet = myWalletProvider.getDefaultWallet();
|
||||||
|
|
||||||
sub.setCurrentWallet(defaultWallet);
|
sub.setCurrentWallet(defaultWallet);
|
||||||
|
|
||||||
|
log.d('aaaaaaaaaaaaaaaaaaa: $username');
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: backgroundColor,
|
backgroundColor: backgroundColor,
|
||||||
resizeToAvoidBottomInset: true,
|
resizeToAvoidBottomInset: true,
|
||||||
|
@ -101,9 +104,15 @@ class WalletViewScreen extends StatelessWidget {
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
title: SizedBox(
|
title: SizedBox(
|
||||||
height: 22,
|
height: 22,
|
||||||
child: Text('seeAWallet'.tr()),
|
child: Text(
|
||||||
),
|
duniterIndexer.walletNameIndexer[walletProfile.address] == ''
|
||||||
|
? 'seeAWallet'.tr()
|
||||||
|
: 'memberAccountOf'.tr(args: [
|
||||||
|
duniterIndexer
|
||||||
|
.walletNameIndexer[walletProfile.address] ??
|
||||||
|
'?'
|
||||||
|
]))),
|
||||||
),
|
),
|
||||||
bottomNavigationBar: homeProvider.bottomAppBar(context),
|
bottomNavigationBar: homeProvider.bottomAppBar(context),
|
||||||
body: SafeArea(
|
body: SafeArea(
|
||||||
|
|
|
@ -73,7 +73,10 @@ class CertTile extends StatelessWidget {
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
homeContext,
|
homeContext,
|
||||||
MaterialPageRoute(builder: (context) {
|
MaterialPageRoute(builder: (context) {
|
||||||
return WalletViewScreen(address: repository['address']);
|
return WalletViewScreen(
|
||||||
|
address: repository['address'],
|
||||||
|
username: repository['name'],
|
||||||
|
);
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -5,7 +5,7 @@ description: Pay with G1.
|
||||||
# pub.dev using `pub publish`. This is preferred for private packages.
|
# pub.dev using `pub publish`. This is preferred for private packages.
|
||||||
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
||||||
|
|
||||||
version: 0.0.14+43
|
version: 0.0.14+44
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=2.12.0 <3.0.0'
|
sdk: '>=2.12.0 <3.0.0'
|
||||||
|
|
Loading…
Reference in New Issue