Fix sound in start

This commit is contained in:
poka 2021-04-04 21:17:29 +02:00
parent ca85a45dd6
commit 9d5f1daaa5
3 changed files with 7 additions and 4 deletions

View File

@ -53,6 +53,12 @@ Future<void> main() async {
// Get a valid GVA endpoint
endPointGVA = await _homeProvider.getValidEndpoint();
if (endPointGVA == 'HS') {
_homeProvider.playSound('faché');
} else {
_homeProvider.playSound('start');
}
if (kReleaseMode && enableSentry) {
// CatcherOptions debugOptions = CatcherOptions(DialogReportMode(), [
// SentryHandler(SentryClient(SentryOptions(

View File

@ -61,11 +61,8 @@ class HomeProvider with ChangeNotifier {
int listLenght = _listEndpoints.length - 1;
if (i > listLenght) {
log.e('NO VALID GVA ENDPOINT FOUND');
playSound('faché');
_endpoint = 'HS';
break;
} else {
playSound('start');
}
if (i != 0) {
await Future.delayed(const Duration(milliseconds: 300));

View File

@ -157,7 +157,7 @@ class WalletOptionsProvider with ChangeNotifier {
context, _walletName, _walletNbr, _derivation) async {
return showDialog<bool>(
context: context,
barrierDismissible: true, // user must tap button!
barrierDismissible: true,
builder: (BuildContext context) {
return AlertDialog(
title: Text('Choisissez un nouveau nom pour ce portefeuille'),