This commit is contained in:
J. A. Messias 2024-11-12 09:35:01 -03:00
parent 2bc3db5c44
commit 697964a5ef
1 changed files with 21 additions and 21 deletions

View File

@ -104,26 +104,26 @@ class _PreferencesPageWidgetState extends State<PreferencesPageWidget> {
onPressed = () => model.toggleFingerprint(context);
isEnabled = model.isFingerprint;
content = FFLocalizations.of(context).getVariableText(
ptText: 'Ative a autenticação por impressão digital para login seguro.',
enText: 'Enable fingerprint authentication for secure login.',
ptText: 'Autenticar com impressão digital no QRCode',
enText: 'Authenticate with fingerprint on the QRCode',
);
break;
case 1:
icon = Icons.person;
icon = Icons.share;
onPressed = () => model.enablePerson(context);
isEnabled = model.isPerson;
content = FFLocalizations.of(context).getVariableText(
ptText: 'Compartilhe o código de identificação remota',
enText: 'Share the remote identification code',
ptText: 'Compartilhar o código de identificação',
enText: 'Share the identification code',
);
break;
case 2:
icon = Icons.info;
icon = Icons.transfer_within_a_station_outlined;
onPressed = () => model.toggleIdentification(context);
isEnabled = false;
content = FFLocalizations.of(context).getVariableText(
ptText: 'Atualize suas informações de identificação de acesso.',
enText: 'Update your access identification information.',
ptText: 'Habilitar dispositivo para acesso',
enText: 'Enable device for access',
);
break;
case 3:
@ -131,8 +131,8 @@ class _PreferencesPageWidgetState extends State<PreferencesPageWidget> {
onPressed = () => model.toggleNotify(context);
isEnabled = model.isNotify;
content = FFLocalizations.of(context).getVariableText(
ptText: 'Ative para receber sua notificação de acesso',
enText: 'Enable to receive your access notification',
ptText: 'Receber notificação de acesso',
enText: 'Receive access notification',
);
break;
case 4:
@ -140,8 +140,8 @@ class _PreferencesPageWidgetState extends State<PreferencesPageWidget> {
onPressed = () => model.toggleAccess(context);
isEnabled = model.isAccess;
content = FFLocalizations.of(context).getVariableText(
ptText: 'Ative para inserir uma credencial de acesso para o QRCode',
enText: 'Enable to enter an access credential for the QRCode',
ptText: 'Registrar credencial de acesso para o QRCode',
enText: 'Register access credential for the QRCode',
);
break;
case 5:
@ -149,8 +149,8 @@ class _PreferencesPageWidgetState extends State<PreferencesPageWidget> {
onPressed = () => model.togglePanic(context);
isEnabled = model.isPanic;
content = FFLocalizations.of(context).getVariableText(
ptText: 'Ative para inserir uma credencial de pânico para o QRCode',
enText: 'Enable to enter a panic credential for the QRCode',
ptText: 'Registrar credencial de pânico para o QRCode',
enText: 'Register panic credential for the QRCode',
);
break;
case 6:
@ -160,8 +160,8 @@ class _PreferencesPageWidgetState extends State<PreferencesPageWidget> {
};
isEnabled = false;
content = FFLocalizations.of(context).getVariableText(
ptText: 'Desative para se desvincular do local selecionado',
enText: 'Enable to unlink from the selected location',
ptText: 'Desvincular do local selecionado',
enText: 'Unlink from selected location',
);
break;
case 7:
@ -169,8 +169,8 @@ class _PreferencesPageWidgetState extends State<PreferencesPageWidget> {
onPressed = () => model.deleteAccount(context);
isEnabled = false;
content = FFLocalizations.of(context).getVariableText(
ptText: 'Delete sua conta e todos os dados associados permanentemente.',
enText: 'Delete your account and all associated data permanently.',
ptText: 'Deletar conta do sistema',
enText: 'Delete account from the system',
);
break;
case 8:
@ -178,8 +178,8 @@ class _PreferencesPageWidgetState extends State<PreferencesPageWidget> {
onPressed = () => model.logout(context);
isEnabled = false;
content = FFLocalizations.of(context).getVariableText(
ptText: 'Sair da conta atual e voltar para a tela de login.',
enText: 'Log out of the current account and return to the login screen.',
ptText: 'Sair da conta',
enText: 'Logout',
);
break;
default:
@ -187,7 +187,7 @@ class _PreferencesPageWidgetState extends State<PreferencesPageWidget> {
}
return SizedBox(
height: 100,
height: 66,
child: GestureDetector(
onTap: () {
switch (index) {