This commit is contained in:
jantunesmesias 2024-08-22 09:46:31 -03:00
parent 518bdf412e
commit e8f33ae26b
3 changed files with 25 additions and 23 deletions

View File

@ -203,8 +203,8 @@ class _MenuComponentWidgetState extends State<MenuComponentWidget> {
setState(() {});
},
title: FFLocalizations.of(context).getVariableText(
enText: 'Schedule\nVisit',
ptText: 'Agendar\nVisita',
enText: 'Schedule Visit',
ptText: 'Agendar Visita',
),
),
MenuCardItem(
@ -214,8 +214,8 @@ class _MenuComponentWidgetState extends State<MenuComponentWidget> {
setState(() {});
},
title: FFLocalizations.of(context).getVariableText(
enText: 'Register\nVisitor',
ptText: 'Cadastro\nde Visitante',
enText: 'Register Visitor',
ptText: 'Cadastro de Visitante',
),
),
MenuCardItem(
@ -225,8 +225,8 @@ class _MenuComponentWidgetState extends State<MenuComponentWidget> {
setState(() {});
},
title: FFLocalizations.of(context).getVariableText(
enText: 'QRCode\nAccess',
ptText: 'QRCode\nde Acesso',
enText: 'QRCode Access',
ptText: 'QRCode de Acesso',
),
),
MenuCardItem(
@ -236,8 +236,8 @@ class _MenuComponentWidgetState extends State<MenuComponentWidget> {
setState(() {});
},
title: FFLocalizations.of(context).getVariableText(
enText: 'Poeple on\nthe Property',
ptText: 'Pessoas\nna Propriedade',
enText: 'Poeple on the Property',
ptText: 'Pessoas na Propriedade',
),
),
MenuCardItem(
@ -247,8 +247,8 @@ class _MenuComponentWidgetState extends State<MenuComponentWidget> {
setState(() {});
},
title: FFLocalizations.of(context).getVariableText(
enText: 'Consult\nHistories',
ptText: 'Consultar\nHistoricos',
enText: 'Consult Histories',
ptText: 'Consultar Historicos',
),
),
MenuCardItem(
@ -258,8 +258,8 @@ class _MenuComponentWidgetState extends State<MenuComponentWidget> {
setState(() {});
},
title: FFLocalizations.of(context).getVariableText(
enText: 'Preferences\nSettings',
ptText: 'Preferências\nde Configuração',
enText: 'Preferences Settings',
ptText: 'Preferências de Configuração',
),
),
];

View File

@ -126,8 +126,8 @@ class _MenuListViewComponentWidgetState
itemCount: widget.options.length,
itemBuilder: (context, index) {
return SizedBox(
height: MediaQuery.of(context).size.height * 0.1,
width: MediaQuery.of(context).size.width * 0.1,
height: MediaQuery.of(context).size.height * 0.08,
width: MediaQuery.of(context).size.width * 0.08,
child: widget.options[index],
);
},

View File

@ -315,7 +315,7 @@ class _HomePageWidgetState extends State<HomePageWidget> {
SizedBox buildDrawer(BuildContext context) {
return SizedBox(
width: 750.0,
width: MediaQuery.of(context).size.width * 0.8,
child: Drawer(
elevation: 16.0,
child: Container(
@ -533,6 +533,7 @@ class _HomePageWidgetState extends State<HomePageWidget> {
),
),
Expanded(
child: SingleChildScrollView(
child: wrapWithModel(
model: _model.menuComponentModel,
updateCallback: () => setState(() {}),
@ -543,7 +544,8 @@ class _HomePageWidgetState extends State<HomePageWidget> {
),
),
),
].addToEnd(const SizedBox(height: 64.0)),
),
],
),
),
),