feat: some changes

This commit is contained in:
Daniel Yukio 2025-02-14 15:21:31 -03:00
parent 44ddafcb0c
commit defe7f3401
3 changed files with 19 additions and 14 deletions

View File

@ -48,8 +48,12 @@ class DocumentItem extends StatelessComponent {
BoxConstraints constraints) {
final Color textColor = FlutterFlowTheme.of(context).info;
final double boxHeight = MediaQuery.of(context).size.height * 0.02;
final double boxWidth = MediaQuery.of(context).size.height * 0.1;
final area = (MediaQuery.of(context).size.height +
MediaQuery.of(context).size.width) /
2;
final double boxHeight = area * 0.033;
final double boxWidth = area * 0.19;
return Tooltip(
message: text,
@ -109,7 +113,7 @@ class DocumentItem extends StatelessComponent {
children: [
// const SizedBox(width: 10),
Icon(Icons.description, color: document.category.color),
// const SizedBox(width: 10),
const SizedBox(width: 10),
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,

View File

@ -57,7 +57,8 @@ class DocumentPageModel extends FlutterFlowModel<DocumentPage> {
Padding(
padding: const EdgeInsets.fromLTRB(15, 0, 50, 0),
child: Text(
'Últimos Documentos',
FFLocalizations.of(context).getVariableText(
enText: 'Recent Documents', ptText: 'Últimos Documentos'),
style: TextStyle(
color: FlutterFlowTheme.of(context).primaryText,
fontSize: LimitedFontSizeUtil.getHeaderFontSize(context),

View File

@ -164,16 +164,6 @@ class MenuEntry implements BaseModule {
route: '/acessHistoryPage',
types: [MenuEntryType.Home, MenuEntryType.Drawer],
),
MenuEntry(
key: 'FRE-HUB-DOCUMENT',
icon: Icons.document_scanner,
name: FFLocalizations.of(navigatorKey.currentContext!).getVariableText(
ptText: 'Documentos',
enText: 'Documents',
),
route: '/documentPage',
types: [MenuEntryType.Home, MenuEntryType.Drawer],
),
MenuEntry(
key: 'FRE-HUB-LIBERATIONS',
icon: Icons.how_to_reg_outlined,
@ -204,6 +194,16 @@ class MenuEntry implements BaseModule {
route: '/messageHistoryPage',
types: [MenuEntryType.Home, MenuEntryType.Drawer],
),
MenuEntry(
key: 'FRE-HUB-DOCUMENT',
icon: Icons.description,
name: FFLocalizations.of(navigatorKey.currentContext!).getVariableText(
ptText: 'Documentos',
enText: 'Documents',
),
route: '/documentPage',
types: [MenuEntryType.Home, MenuEntryType.Drawer],
),
MenuEntry(
key: 'FRE-HUB-ABOUT-PROPERTY',
icon: Icons.home,