fix: layout cert message; show renewable message before cert delay

This commit is contained in:
poka 2022-06-06 17:05:35 +02:00
parent 5c49be4f12
commit 48e2b09b22
3 changed files with 7 additions and 7 deletions

View File

@ -597,14 +597,14 @@ class SubstrateSdk with ChangeNotifier {
_removableOn.toString() +
'\n' +
_nextIssuableOn.toString());
if (_nextIssuableOn > blocNumber) {
final certDelayDuration = (_nextIssuableOn - blocNumber) * 6;
_result.putIfAbsent('certDelay', () => certDelayDuration);
return _result;
} else if (_renewableOn != 0) {
if (_renewableOn != 0) {
final certRenewDuration = (_renewableOn - blocNumber) * 6;
_result.putIfAbsent('certRenewable', () => certRenewDuration);
return _result;
} else if (_nextIssuableOn > blocNumber) {
final certDelayDuration = (_nextIssuableOn - blocNumber) * 6;
_result.putIfAbsent('certDelay', () => certDelayDuration);
return _result;
} else {
_result.putIfAbsent('canCert', () => 0);
return _result;

View File

@ -289,7 +289,7 @@ class WalletViewScreen extends StatelessWidget {
),
),
Text(
"Vous pourrez renouveller cette certification\ndans \n$_duration",
"Vous pourrez renouveller\ncette certification\ndans $_duration",
textAlign: TextAlign.center,
style: TextStyle(
fontSize: buttonFontSize - 4,

View File

@ -48,7 +48,7 @@ dependencies:
qr_flutter: #^4.0.0
git:
url: https://github.com/insinfo/qr.flutter.git
ref: master # branch name
ref: master
responsive_builder: ^0.4.1
responsive_framework: ^0.2.0
sentry: ^6.5.1