WIP
This commit is contained in:
parent
518bdf412e
commit
e8f33ae26b
|
@ -203,8 +203,8 @@ class _MenuComponentWidgetState extends State<MenuComponentWidget> {
|
||||||
setState(() {});
|
setState(() {});
|
||||||
},
|
},
|
||||||
title: FFLocalizations.of(context).getVariableText(
|
title: FFLocalizations.of(context).getVariableText(
|
||||||
enText: 'Schedule\nVisit',
|
enText: 'Schedule Visit',
|
||||||
ptText: 'Agendar\nVisita',
|
ptText: 'Agendar Visita',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
MenuCardItem(
|
MenuCardItem(
|
||||||
|
@ -214,8 +214,8 @@ class _MenuComponentWidgetState extends State<MenuComponentWidget> {
|
||||||
setState(() {});
|
setState(() {});
|
||||||
},
|
},
|
||||||
title: FFLocalizations.of(context).getVariableText(
|
title: FFLocalizations.of(context).getVariableText(
|
||||||
enText: 'Register\nVisitor',
|
enText: 'Register Visitor',
|
||||||
ptText: 'Cadastro\nde Visitante',
|
ptText: 'Cadastro de Visitante',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
MenuCardItem(
|
MenuCardItem(
|
||||||
|
@ -225,8 +225,8 @@ class _MenuComponentWidgetState extends State<MenuComponentWidget> {
|
||||||
setState(() {});
|
setState(() {});
|
||||||
},
|
},
|
||||||
title: FFLocalizations.of(context).getVariableText(
|
title: FFLocalizations.of(context).getVariableText(
|
||||||
enText: 'QRCode\nAccess',
|
enText: 'QRCode Access',
|
||||||
ptText: 'QRCode\nde Acesso',
|
ptText: 'QRCode de Acesso',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
MenuCardItem(
|
MenuCardItem(
|
||||||
|
@ -236,8 +236,8 @@ class _MenuComponentWidgetState extends State<MenuComponentWidget> {
|
||||||
setState(() {});
|
setState(() {});
|
||||||
},
|
},
|
||||||
title: FFLocalizations.of(context).getVariableText(
|
title: FFLocalizations.of(context).getVariableText(
|
||||||
enText: 'Poeple on\nthe Property',
|
enText: 'Poeple on the Property',
|
||||||
ptText: 'Pessoas\nna Propriedade',
|
ptText: 'Pessoas na Propriedade',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
MenuCardItem(
|
MenuCardItem(
|
||||||
|
@ -247,8 +247,8 @@ class _MenuComponentWidgetState extends State<MenuComponentWidget> {
|
||||||
setState(() {});
|
setState(() {});
|
||||||
},
|
},
|
||||||
title: FFLocalizations.of(context).getVariableText(
|
title: FFLocalizations.of(context).getVariableText(
|
||||||
enText: 'Consult\nHistories',
|
enText: 'Consult Histories',
|
||||||
ptText: 'Consultar\nHistoricos',
|
ptText: 'Consultar Historicos',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
MenuCardItem(
|
MenuCardItem(
|
||||||
|
@ -258,8 +258,8 @@ class _MenuComponentWidgetState extends State<MenuComponentWidget> {
|
||||||
setState(() {});
|
setState(() {});
|
||||||
},
|
},
|
||||||
title: FFLocalizations.of(context).getVariableText(
|
title: FFLocalizations.of(context).getVariableText(
|
||||||
enText: 'Preferences\nSettings',
|
enText: 'Preferences Settings',
|
||||||
ptText: 'Preferências\nde Configuração',
|
ptText: 'Preferências de Configuração',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
];
|
];
|
||||||
|
|
|
@ -126,8 +126,8 @@ class _MenuListViewComponentWidgetState
|
||||||
itemCount: widget.options.length,
|
itemCount: widget.options.length,
|
||||||
itemBuilder: (context, index) {
|
itemBuilder: (context, index) {
|
||||||
return SizedBox(
|
return SizedBox(
|
||||||
height: MediaQuery.of(context).size.height * 0.1,
|
height: MediaQuery.of(context).size.height * 0.08,
|
||||||
width: MediaQuery.of(context).size.width * 0.1,
|
width: MediaQuery.of(context).size.width * 0.08,
|
||||||
child: widget.options[index],
|
child: widget.options[index],
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
|
@ -315,7 +315,7 @@ class _HomePageWidgetState extends State<HomePageWidget> {
|
||||||
|
|
||||||
SizedBox buildDrawer(BuildContext context) {
|
SizedBox buildDrawer(BuildContext context) {
|
||||||
return SizedBox(
|
return SizedBox(
|
||||||
width: 750.0,
|
width: MediaQuery.of(context).size.width * 0.8,
|
||||||
child: Drawer(
|
child: Drawer(
|
||||||
elevation: 16.0,
|
elevation: 16.0,
|
||||||
child: Container(
|
child: Container(
|
||||||
|
@ -533,17 +533,19 @@ class _HomePageWidgetState extends State<HomePageWidget> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: wrapWithModel(
|
child: SingleChildScrollView(
|
||||||
model: _model.menuComponentModel,
|
child: wrapWithModel(
|
||||||
updateCallback: () => setState(() {}),
|
model: _model.menuComponentModel,
|
||||||
child: const MenuComponentWidget(
|
updateCallback: () => setState(() {}),
|
||||||
expandable: false,
|
child: const MenuComponentWidget(
|
||||||
style: MenuView.list,
|
expandable: false,
|
||||||
item: MenuItem.tile,
|
style: MenuView.list,
|
||||||
|
item: MenuItem.tile,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
].addToEnd(const SizedBox(height: 64.0)),
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue