chore: Update preferences settings UI
This commit is contained in:
parent
4989ba6b2b
commit
a5255f4f06
|
@ -105,32 +105,34 @@ class PreferencesPageModel with ChangeNotifier {
|
|||
backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
|
||||
title: Text(
|
||||
FFLocalizations.of(context).getVariableText(
|
||||
enText: FFAppState().notify
|
||||
? 'Access Notification'
|
||||
: 'Disable Access Notification',
|
||||
ptText: FFAppState().notify
|
||||
? 'Notificação de acesso'
|
||||
: 'Desativar notificação de acesso',
|
||||
),
|
||||
enText: FFAppState().notify
|
||||
? 'Disable Access Notification'
|
||||
: 'Access Notification',
|
||||
ptText: FFAppState().notify
|
||||
? 'Desativar notificação de acesso'
|
||||
: 'Notificação de acesso'),
|
||||
),
|
||||
content: Text(
|
||||
FFLocalizations.of(context).getVariableText(
|
||||
ptText: 'Tem certeza que deseja desvincular este dispositivo?',
|
||||
enText: 'Are you sure you want to unlink this device?',
|
||||
),
|
||||
ptText: FFAppState().notify
|
||||
? 'Tem certeza que deseja desativar as suas notificações de acesso?'
|
||||
: 'Tem certeza que deseja receber as suas notificações de acesso?',
|
||||
enText: FFAppState().notify
|
||||
? 'Are you sure you want to disable your access notifications?'
|
||||
: 'Are you sure you want to receive your access notifications?'),
|
||||
),
|
||||
actions: [
|
||||
FFButtonWidget(
|
||||
text: FFLocalizations.of(context).getVariableText(
|
||||
enText: 'Cancel',
|
||||
ptText: 'Cancelar',
|
||||
enText: 'No',
|
||||
ptText: 'Não',
|
||||
),
|
||||
onPressed: () {
|
||||
Navigator.pop(context);
|
||||
},
|
||||
options: FFButtonOptions(
|
||||
width: 100,
|
||||
height: 40,
|
||||
width: MediaQuery.of(context).size.width * 0.3,
|
||||
height: MediaQuery.of(context).size.height * 0.05,
|
||||
color: FlutterFlowTheme.of(context).primaryBackground,
|
||||
textStyle: TextStyle(
|
||||
color: FlutterFlowTheme.of(context).primaryText,
|
||||
|
@ -190,14 +192,15 @@ class PreferencesPageModel with ChangeNotifier {
|
|||
),
|
||||
);
|
||||
}).whenComplete(() => notifyListeners());
|
||||
Navigator.pop(context);
|
||||
},
|
||||
text: FFLocalizations.of(context).getVariableText(
|
||||
enText: 'Unlink',
|
||||
ptText: 'Desvincular',
|
||||
enText: 'Yes',
|
||||
ptText: 'Sim',
|
||||
),
|
||||
options: FFButtonOptions(
|
||||
width: 100,
|
||||
height: 40,
|
||||
width: MediaQuery.of(context).size.width * 0.3,
|
||||
height: MediaQuery.of(context).size.height * 0.05,
|
||||
color: FlutterFlowTheme.of(context).primaryBackground,
|
||||
textStyle: TextStyle(
|
||||
color: FlutterFlowTheme.of(context).primaryText,
|
||||
|
@ -243,8 +246,8 @@ class PreferencesPageModel with ChangeNotifier {
|
|||
Navigator.pop(context);
|
||||
},
|
||||
options: FFButtonOptions(
|
||||
width: 100,
|
||||
height: 40,
|
||||
width: MediaQuery.of(context).size.width * 0.3,
|
||||
height: MediaQuery.of(context).size.height * 0.05,
|
||||
color: FlutterFlowTheme.of(context).primaryBackground,
|
||||
textStyle: TextStyle(
|
||||
color: FlutterFlowTheme.of(context).primaryText,
|
||||
|
@ -300,8 +303,8 @@ class PreferencesPageModel with ChangeNotifier {
|
|||
ptText: 'Desvincular',
|
||||
),
|
||||
options: FFButtonOptions(
|
||||
width: 100,
|
||||
height: 40,
|
||||
width: MediaQuery.of(context).size.width * 0.3,
|
||||
height: MediaQuery.of(context).size.height * 0.05,
|
||||
color: FlutterFlowTheme.of(context).primaryBackground,
|
||||
textStyle: TextStyle(
|
||||
color: FlutterFlowTheme.of(context).primaryText,
|
||||
|
@ -341,8 +344,8 @@ class PreferencesPageModel with ChangeNotifier {
|
|||
FFButtonWidget(
|
||||
onPressed: () => Navigator.pop(context),
|
||||
options: FFButtonOptions(
|
||||
width: 100,
|
||||
height: 40,
|
||||
width: MediaQuery.of(context).size.width * 0.3,
|
||||
height: MediaQuery.of(context).size.height * 0.05,
|
||||
color: FlutterFlowTheme.of(context).primaryBackground,
|
||||
textStyle: TextStyle(
|
||||
color: FlutterFlowTheme.of(context).primaryText,
|
||||
|
@ -401,8 +404,8 @@ class PreferencesPageModel with ChangeNotifier {
|
|||
notifyListeners();
|
||||
},
|
||||
options: FFButtonOptions(
|
||||
width: 100,
|
||||
height: 40,
|
||||
width: MediaQuery.of(context).size.width * 0.3,
|
||||
height: MediaQuery.of(context).size.height * 0.05,
|
||||
color: FlutterFlowTheme.of(context).primaryBackground,
|
||||
textStyle: TextStyle(
|
||||
color: FlutterFlowTheme.of(context).primaryText,
|
||||
|
|
Loading…
Reference in New Issue